php package installation problem

can u tell me the procedure to install php 5 using package ..
i downloaded php-5.2.1-sol10-x86-local.gz from sunfreeware

i have added package using
pkgadd -d php-5.2.1-sol10-x86-local

then i have added these two lines in httpd.conf
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php

and placed php.ini in /usr/local/php/lib

but still i couldn open a php file..
tel me where am i going wrong..

i already have apache 2.0

---------- Post updated at 06:23 PM ---------- Previous update was at 04:51 PM ----------

i have this problem for a month couldn find the solution ... can u guide me with your ideas..

Did you reload/restart the daemon? Otherwise neither configuration changes nor new modules will be picked up. Did you check the Apacher error_log for any messages? Any console errors? Because based on the information you've given so far we might as well look into a crystal ball.

ya i have restarted my apache ...
but i didn check my error log will post the log .. now..

do we need to first shutdown apache while installing php...?

i followed the below procedure...
its from SUN FREEWARE...

php-5.2.1-sol10-x86-local.gz The PHP scripting language - installs in /usr/local/php. PHP requires that libiconv. libxml2, zlib, and either libgcc-3.4.6 or gcc-3.4.6 be installed. PHP is used with apache 2.0.59, not apache 2.2, and mysql which should also be installed along with any packages they may require. PHP needs configuration. php.ini related files are in /usr/local/php/doc/php along with other documentation. php.ini needs to be installed in /usr/local/php/lib. The libphp5.so file is installed in /usr/local/apache2/modules. The following two lines LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
need to be placed in your httpd.conf file in their appropriate places. Finally, you will need to have /usr/local/lib and /usr/local/pgsql/lib before /usr/lib in your library search path like LD_LIBRARY_PATH or similar.

i have already installed mysql 5.0 in solaris 10 x86 box...

i have apache 2.0 in my solaris 10 x86

how to restart deamon process ...
am using the following to start and stop apache..

svcadm -v enable /network/http:apache2
svcadm disable /network/http:apache2

---------- Post updated at 09:13 PM ---------- Previous update was at 08:45 PM ----------

am sorry for posting my comments one by one...
i followed that procedure ... and my error_log shows nothing which i couldn find any errors... i will once again install and post my error_log...

If the error log doesn't show any problems, please post the error message your browser displays, and, if possible, the script itself.

i have again tried php installation with ./configure ..

but still couldn find the solution..
when i placed my phpinfo.php file in the apache document root directory..
/var/apache/htdocs/phpinfo.php

i get a blank page in my browser screen ...
with "hello world" line
my phpinfo.php file looks like this ..

<html>
<body>
<p>Hello World</p>
<?php phpinfo(); ?>
</body>
</html>

please help me with this php installation problem .. still couldn find the solution .. i have this problem for a month..

my ./configure file looks like this ..

./configure --with-apxs=/usr/apache/bin/apxs -with-mysql

---------- Post updated at 08:21 PM ---------- Previous update was at 02:00 PM ----------

is my procedure right..? am i following the correct way...

m facing the above problem for a month can anyone ... tell me how to solve the above problem .. i need to close this issue in my company as soon as possible ..

Did you restart apache?

ya i have restarted apache...

can u tell me how to install the php5 on solaris 10 x86 ... i referred maximum links .. but couldn install properly...
i want step by step procedure ..