Building Apache, MySQL, and PHP on Mac OS X - Making WebDAV (Page 4 of 6 )
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:
LoadModule dav_module libexec/httpd/libdav.so
AddModule mod_dav.c
One more step and you're done. On to PHP.
Next: Making PHP >>
More Administration Articles
More By Lucas Marshall