Here is a part of the install instructions for setting up a mail server that have to do with php, try these and see if that helps. The full guide is at:
http://www.pipeline.com.au/staff/mbo...ail-server.htm
-------------------------------------------------------------------------
www.php.net
Go to their website and download the latest source to /usr/local/src. In this example I have used :
php-4.3.2.tar.gz
Extract the source
cd /usr/local/src
tar xzf php-4.3.2.tar.gz
chown -R root.root php-4.3.2.tar.gz
cd php-4.3.2
And now use the configure script to patch the Apache source tree
./configure \
--with-mysql=/usr/local/mysql \
--with-apxs=/usr/local/apache/bin/apxs
make
make install
Put the sample php.ini file into the required location
cp php.ini-dist /usr/local/lib/php.ini
--------------------------------------------------------------------------
Open up the httpd.conf and make sure these lines are in your configureation:
# Following line should be present already as it would be inserted by the PHP make
# Make sure you move it outside of the IfDefineSSL section if the make (incorrectly) put it there
LoadModule php4_module libexec/libphp4.so
# uncomment (or add) the following line
AddType application/x-httpd-php .php
# Add the index.php into this line so apache will use this file as a default in addition to index.html
DirectoryIndex index.php index.html
-----------------------------------------------------------------------
Restart apache