cd /usr/local
wget
http://uk2.php.net/get/php-5.0.3.tar.gz/from/www.php.net/mirror
tar -xvzf php-5.0.3.tar.gz.1
cd php-5.0.3
./configure' '--with-xml' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--with-mysql' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib' '--disable-debug' '--prefix=/usr/local/php5' '--enahble-force-cgi-redirect' '--with-config-file=/usr/local/php5/lib/php.ini' '--with-config-file-path=/usr/local/php5/lib/
make
make install
cd /usr/local/
cp php-5.0.3/php.ini-dist php5/lib/php.ini
rm -rf php-5.0.3.tar.gz.1
----------------------------------------------------------------------
php5 should now be installed along php4 now do the following
--------------------------------------------------------------------------
cd /usr/local/apache/conf/
pico httpd.conf
ctr + w addtype
---------------------------------------------------------------------------
add below the php4 add types
-----------------------------------------------------------------------------
AddType application/x-httpd-php5 .php5
ScriptAlias /php/ "/usr/local/php5/bin/"
Action application/x-httpd-php5 "/php/php"
-------------------------------------------------------------------------------
last thing
------------------------------------------------------------------------------
service httpd restart
then create a file called phpinfo.php5 and create phpinfo.php and put the following code in it
------------------------------------------------------------------------------------------------------
<?php phpinfo('');
?>
then test it out it should most of the time work