php installation steps..

hi ..
i need procedure to install php on my solaris server..
i spent more than two weeks for this installation procedure..
but still couldn find a proper solution..
i have successfully enabled apache,tomcat,mysql,oracle ..
this is the only issue am having rite now and its bothering me a lot..

i went through few posts that php can either be configured and compiled .. or either by adding package ..
tell me which one is better.. and the procedure to do that.
thanks ...

---------- Post updated at 05:21 PM ---------- Previous update was at 05:04 PM ----------

am getting this error ...
if i configure.

./configure --with-apxs2=/usr/apache2/bin/apxs --enable-dbase \
> --with-libxml-dir=/usr/local --with-config-file-path=/etc/apache2 \
> --with-mysql=shared,/opt/csw/mysql5 \
> --with-mysqli=shared,/opt/csw/mysql5/bin/mysql_config \
> --with-xpm-dir=/usr --with-gd --with-tiff-dir=/usr --with-bz2=/usr/lib \
> --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib --enable-mbstring \
> --enable-calendar--enable-bcmath --enable-ftp --enable-exif

---------- Post updated at 05:22 PM ---------- Previous update was at 05:21 PM ----------

./configure: cannot execute

Why do you compile PHP when you can simply install PHP from Solaris companion CD.

Solaris Operating System - Freeware

can u tell me how to install from that CD...
cause i almost installed everything for my server .. except php..
i dont want things to get messed up..
i want your guidance...
thnks

---------- Post updated at 06:55 PM ---------- Previous update was at 06:03 PM ----------

By using this companion CD ..
will it affect other programs...
tell me procedure to install php from the CD...
thanks..

I don't know hot to set up PHP and Apache because I had never done that.

But using some logic first you need to transfer packet from CD to your installation directory.

On Solaris that directory is /var/spool then install it using pkgadd command.

But don't take me serious and I will repeat one more: I don't work with apache and I never did , so I won't be responsible for any kind of damage.

Look at Apache documentation, PHP documenatation and think do you need to install PHP on more servers, zones and what is happing when you install that package.