To install PHP on Mac OS X there are, just as with Apache, several options one could use. I’ve chosen the most simple setup that will get most PHP based applications running that we need for the mailserver and such.
You can start by downloading the latest source archive from www.php.net and select the instructions that fit your purpose.
Using the DIYMacServer Apache installation
- Compiling PHP in 32 bits mode on Leopard
- Compiling PHP in 64 bits mode on Leopard
- Compiling PHP in 64 bits mode on Snow Leopard
Using the default Apache installation:
If you want to use these instructions with the default Apache installation instead of our DIYMacServer Apache installation you will need to replace the string:
with
and all will work as instructed with the default Apache installation.
Please note that configuration and logfiles are in the original location and not the ones we point to in our instructions.
Adding extra modules:



3:14 am
Hi Richard I dont see a PHP installation guide for Tiger, could I use the Leopard guide? or is their another guide I could use for DIYMacServer Apache installation? I installed Mysql and Apache successfully through your guides, thanks.
8:36 am
Roberto, I’m sorry I noticed I removed that page accidently. Try to use the 32 bit Leopard installation page. If you run into problems please use the forum for getting answers.