August 9, 2009

Custom Apache Installation

I wanted to document my process for installing/upgrading to the latest version of Apache on a Mac OS X machine. The steps below will guide you through the process. Lets get the latest bits from apache.org. We want to get the Unix source files, I usually get the .tar.gz file. The downloads are accessible here Now, unpack the bits and open a terminal window and change directory to the location of the unpacked files. We will begin by configuring our install. I’ve included various options that I need, but you can find out what options are available here.

CFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk" \  
./configure --prefix=/Developer/Servers/apache_2.2.13 \  
--enable-mods-shared=all \  
--enable-cache \  
--enable-disk-cache \  
--enable-deflate \  
--enable-expires \  
--enable-headers \  
--enable-info \  
--enable-mime-magic \  
--enable-proxy \  
--enable-rewrite \  
--enable-speling \  
--enable-unique-id \  
--enable-usertrack

Now lets make the install.

make

Now lets install.

make install

Now we can start the server.

sudo /Developer/Servers/apache_2.2.13/bin/./apachectl restart

All done.

If you'd like to follow me, I tweet @burnsra on Twitter. You're also welcome to send a polite email to contact@robertburns.me. I don't always get the chance to respond, but email is always the best way to get in touch.

Comments on this site are currently an experiment.

comments powered by Disqus