Apple's Mac OS X 10.5.x Leopard Server is an easy way to get started with the open source *AMP stack (Apache, PHP, MySQL). Everything can be enabled with a click of the mouse using Apple's easy to use GUI, Server Admin. It's a great thing too, but like all of Apple's products, their is always the small detail that ruins it.
Apple forgot a couple of very important open source modules. In PHP it's GD and mcrypt, while Apache is missing the all important mod_perl2. The following HelpFile will guide you on how to compile and install your very own Apache and PHP without affecting Apple's built in setup. Unfortunately, this means that using Server Admin is out of the question, thankfully we have something called Webmin.
First of all, we need to download the MySQL client libraries and headers from Apple's website since they are not included with Mac OS X Server 10.5. The following instructions are taken directly off of Apple's knowledge base article located at http://support.apple.com/kb/TA25017?viewlocale=en_US.
To install:
Make sure you complete this step, you can not build PHP with MySQL support without these libraries and headers.
Lets go to a terminal and switch to the root user and create ourselves a work folder to keep everything in. Execute the following commands in your terminal window:
sudo -s
cd ~
mkdir work
cd work
Comments
Excellent Guide
Thank you very much for this guide. It helped me tremendously to build and install newer versions of all these software on my test server. Any chance of writing a guide for MySQL for OS X Server 10.5 running on a PowerPC chip? I tried a few of the available guides online, but it didn't quite work out for me.