Apple's new operating system, Mac OS X, has a UNIX at it's core. What can you do with that? Make a killer development box that includes runtime environments for PHP and MySQL! This article runs you through all the steps for building Apache, MySQL, and PHP on your Mac OS X-based box.
WebDAV is a very useful protocol that allows for file transfer, versioning, and other things via HTTP. The standard installation of Apache comes with mod_dav, the module responsible for handling WebDAV requests, so I'll show you how to compile it for our new copy of Apache. You can find out more about WebDAV at http://www.webdav.org.
% cd ..
% gnutar zxf mod_dav-1.0.2-1.3.6.tar.gz
% cd mod_dav-1.0.2-1.3.6
Now that the mod_dav source is decompressed, we configure.
% ./configure --with-apxs=/usr/sbin/apxs
The --with-apxs option tells the configure script that we want mod_dav
compiled as a DSO using Apache's APXS mechanism.
% make
% sudo make install
This will compile, install, and enable mod_dav. If you want it to disable
it (as it is in Apple's default Apache) you'll need to edit /etc/httpd/httpd.conf and comment out (put # at the start of the line) these lines: