I was able to compile PHP 5.0.3 pretty much right out of the box on my OS X 10.3.7 PowerBook last night. I had downloaded the Xcode developer tools from Apple and the november 2004 GCC update.
After downloading and running the MySQL 4.1.10a installer, I was able to do the following (all within the Termainl Utility Application):
Yukimura:mw# tar xfj php-5.0.3.tar.bz2
Yukimura:mw# cd php-5.0.3
Yukimura:mw# ./configure --prefix=/usr/local/php5 --with-apxs=/usr/sbin/apxs --enable-mbstring --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-soap
Yukimura:mw# make
Yukimura:mw# su
Password: *******
Yukimura:root# make install
I then only had to edit /private/etc/httpd/httpd.conf and change the first line of:
<IfModule mod_php4.c>
# If php is turned on, we repsect .php and .phps files.
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
# Since most users will want index.php to work we
# also automatically enable index.php
<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>
</IfModule>
from:
<IfModule mod_php4.c>
to:
<IfModule mod_php5.c>
I just restarted the web server with
Yukimura:mw# sudo /usr/sbin/apachectl restart
And I've got a fully working XAMP platform (except OS X has not shutdown scripts -- only startup ....)