Apache on OS X
This is for the nerds out there, so if you're here for the short stories please glance beyond this :).
For the rest of us, I thought I would provide a place to get the perfect Apache/Mongrel/Rails setup for OS X. These are bits collected from all around the web and some parts I figured out on my own. I've left references to the various pages in the bottom.
So to start let's get Apache on here.
Now we need to add a basic layout for the configuration.
Scroll down to the bottom, press esc, i, and then paste the below snippet:
Press esc, esc, :, w, q, enter.
Now back to our scheduled compile ...
Resources:
For the rest of us, I thought I would provide a place to get the perfect Apache/Mongrel/Rails setup for OS X. These are bits collected from all around the web and some parts I figured out on my own. I've left references to the various pages in the bottom.
Apache
So to start let's get Apache on here.
sudo su
cd /usr/local/src
curl -O http://apache.tradebit.com/pub/httpd/httpd-2.2.6.tar.gz
tar -zxvf httpd-2.2.6.tar.gz
cd httpd-2.2.6
Now we need to add a basic layout for the configuration.
vi config.layout
Scroll down to the bottom, press esc, i, and then paste the below snippet:
<Layout Richard5>
prefix: /Library/Apache2
exec_prefix: ${prefix}
bindir: ${exec_prefix}/bin
sbindir: ${exec_prefix}/bin
libdir: ${exec_prefix}/lib
libexecdir: ${exec_prefix}/modules
mandir: ${prefix}/man
sysconfdir: ${prefix}/conf
datadir: ${prefix}
installbuilddir: ${datadir}/build
errordir: ${datadir}/error
iconsdir: ${datadir}/icons
htdocsdir: ${datadir}/htdocs
manualdir: ${datadir}/manual
cgidir: ${datadir}/cgi-bin
includedir: ${prefix}/include
localstatedir: ${prefix}
runtimedir: ${localstatedir}/logs
logfiledir: ${localstatedir}/logs
proxycachedir: ${localstatedir}/proxy
</Layout>
Press esc, esc, :, w, q, enter.
Now back to our scheduled compile ...
export CFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
./configure --enable-layout=Richard5 --enable-mods-shared=all --with-ssl=/usr --with-mpm=prefork --enable-ssl --enable-dav --enable-cache --enable-proxy --enable-shared --disable-static --disable-unique-id --disable-ipv6 --enable-logio --enable-deflate --with-included-apr --enable-auth-ldap --enable-cgi --enable-cgid --enable-suexec
make
make install
mv /usr/sbin/apachectl /usr/sbin/apachectl-1.3
cp /Library/Apache2/bin/apachectl /usr/sbin/
cd /usr/local
ln -s /Library/Apache2 ./apache2
/usr/sbin/apachectl start
Resources:

