You can aslo compile php 5 from source for use with the Apache 2 and MySQL packge from server logistics:
Download the latest source (at time of writing, 5.1.5) from php.net, unpack it to any directory you have write access to (your home directory, for example). Make sure that Apache 2 is stopped. Then open a terminal.
1)If you are running as a limited user (which you should generally do), you need to log in as a administrator by typing
login admin
and then entering your password
if you are running as an administrator, skip step 1
2)change to the directory in which you have php unpacked to:
cd /directory/in/which/is/php-1.5.1
3) configure:
./configure --prefix=/Library/PHP5 --with-mysql=/Library/MySQL --with-apxs2=/Library/Apache2/bin/apxs
you can also append any other configuration options you want
4) type:
make
this will compile php. You need to have GCC installed, you can get it for free with Apple's xcode Developement environment.
5) when make finnished, type:
make install
if you are running as a administrator (but not root), type
sudo make install
it will ask you for your password and then install php into the specified directory
You might have to add the following lines to your httpd.conf, if you hadn't had Server Logistics php 4 installed.
6) Start Apache and test php by creating a new file test.php and saving the following line to it:
<?php phpinfo(); ?>
when you browse to that file, you should see the php info page