To install Apache on Mac OS X there are several possibilities. Several people and organisations like Server Logistics and Marc Liyanage provide a binary installation packages. But as stated before I don’t like the dependancy on others to update their package quickly when there might be a security issue or a problem. It also provides the possibility to tweak the configuration to ones own use.
The compilation and installation of Apache is relatively simple. Download the latest source from www.apache.org, and with a few statements you can compile and install it.
Before you start you might want to turn of the default Apache installation that might be running on your Mac. To make sure open System Preferences and open the Sharing Preference pane and to stop Apache uncheck “Personal Web Sharing”.
The documentation set on Apache covers several topics, if you feel something is missing please let me know so we can add it to the set.
Please note the difference in the documentation regarding the different versions of Mac OS X. If you are not sure if your machine is capable of 64 bits mode open a Terminal session type in “httpd -V” and the output will tell you.
Snow Leopard:
Leopard:
- Compiling Apache in 32 bits mode on Leopard
- Compiling Apache in 64 bits mode on Leopard
- Configuring Apache on Leopard
Tiger:
For both:
Leopard:
Tiger:



7:27 pm
is there a document somewhere that goes through and describes exactly why it is necessary to reinstall your own Apache rather than using the 2.2.11 one that comes with Leopard?
i’m fairly sure the benefits are beyond my needs so i don’t need to bother, but it’d be nice to see for sure
7:35 pm
There is, in the Introduction page there is a short explanation. Basically, because we can. But if you don’t want to why are you looking here, you don’t have to do it!
11:46 am
lol – well i’m looking at this page because this was the one i was taken to after following your mysql installation guide – so i was wondering if there are some important elements missing from the Leopard installation or something. That said, i’ve got a tad stuck trying to get GD2 and freetype2 working with the default php install, so i’m going to go ahead and follow your apache and php installations anyway.
btw- just wanted to say, thanks for these docs – instructions are really good and easy to follow and so nice to have all the guides collected in one place instead of having to use google each time to find out how to do the next bit
1:19 am
The installation guide shold take advantage of the mac ports to install stuff like mysql5, apache2, php5, postfix, and dovecot (or courier-imap and courier-authlib (I think)). You’d still need the manual instruction for PostfixAdmin and the postfix and dovecot (or courier) setups.
7:15 pm
@Jim, I don’t agree. As I explained somewhere else on the site you create dependancies I try to avoid. This is just you, me and the source and no one else. Also macports does a lot more which we do not need.