I found a great HOW-TO on how to replace the base installation of Apache 1.3.x on Mac OSX over at Chalmers Tekniska Hogskola’s website.
This is very helpful information if you use apache on your Mac to develop websites and web applications locally.
Without further ado, here is the article.
Installing Apache2 and PHP 5.0.4
Staying at the top has a cost. Hours of trying to figure out how to install new software.
Recently I (after lots of mistakes) managed to install Apache2 and PHP 5.0.4. To make it all simple for and only invent the wheel once I decided to put up this guide.
The idea was that I wanted Apache2 together with PHP on my webserver and start and stop Apache from the System Preferences pane. In other words I wanted to remove the old installation of Apache 1.3.x and replace it with Apache2. Roaming the Internet gave me absoulutly no clue whats so ever how to achive this. The guides I found was generally set up so you had two webservers or a lot of fiddling with the httpd.conf file. Also I would have to make a script to launch Apache2 at startup, and as said before “There is no reason to invent the wheel again”.
So here is what you need to do: I assume that you are familiar with using a terminal window, if not, this is a good time to try it out.
You need to have a compiler installed. This comes for free with XCode. I’m running gcc 4.0.
glibtool (GNU Libtool) version 1.4.2 or higher
autoconf verion 2.5.2 If you don’t have these download them using fink. If you don’t have fink, download and install it! These are needed for the installation of Apache2 . If you don’t want to use fink Remember that GNU Libtool is in a normal *unix system named libtool. If you don’t compile it as glibtool you will run into trouble later on when installing other programs developed by Apple.