OS X Server 10.4.* (Tiger), Apache2, PHP5, and PostGres for the Mac

Submitted by shunting on Thu, 05/01/2008 - 20:04

I needed to recompile my setup, and Tiger doesn't support Apache2 or PHP5 out of the box.

For compiling Apache2 and PHP5, these instructions worked flawlessly.

UPDATE The above link is now dead, and I can't find a copy of the article in Google cache. However, the instructions here worked flawlessly for me this time, even though the focus is on linux; I assume because I ironed out OS X's little quirks (see below) in the last installation.

And there is now a nice Mac PostGres installer. It too worked flawlessly!

-030-

I forgot to say, "Additional Useful Apache2 Config Settings" provides a crucial bit of information:

cd /usr/sbin/;
mv apachectl apachectl-1.3;
ln -s /apache2/bin/apachectl apachectl;

The apachectl that comes with the Apple Apache install (1.3) has paths hard-coded into it, so if you get error messages to paths that don't exist anymore, or shouldn't, because of your new install, that's why. So, disable the old apachectl, and link to the new one, in your new installation directory.