I know this thread has gotten somewhat old now but in a previous post I said I would relay my experiences with enabling WebDAV on a new DirectAdmin server. It took me a long time because I had been waiting for Directadmin to come out of beta on CentOS 6.0. I now have my server built and just yesterday went through the process of enabling WebDAV on it. It is actually quite an easy process now since the DAV modules are compiled in by default.
To verify the necessary modules are loaded type this on the command line:
Code:
apachectl -l | grep "dav"
If all is well this should be the result:
Code:
mod_dav.c
mod_dav_fs.c
mod_dav_lock.c
The configuration file for WebDAV is located in /etc/httpd/conf/extra/httpd-dav.conf and as far as I can tell the only thing you need to worry about is this line near the top:
Code:
DavLockDB "/etc/httpd/var/DavLock"
The Alias and Directory sections in that file could probably just be commented out though on my server I just left them as is. However, the folder for the Lock Database (/etc/httpd/var/) was not created by default during the DirectAdmin installation. You can decide whether you want to use the location referenced in the file or change it to somewhere else. I went ahead and used the location referenced in the file. To create the necessary folder you will need to issue these commands as root:
Code:
mkdir /etc/httpd/var
chown apache:apache /etc/httpd/var
chmod 755 /etc/httpd/var
Note: The chmod command is probably unnecessary as I believe 755 are probably set by default anyway. And of course, if you change the location for the lock file you will need to change the code accordingly.
Go ahead and restart Apache (on Centos type "service httpd restart") and you should have a working WebDAV installation. You can then use the DirectAdmin control panel to enable Dav on any directories you need it for (look for Custom HTTPD Configurations under Extra Features at the Admin level of the control panel). You will need to at least add the DAV On directive and probably want to set up some sort of authentication for any folders you enable DAV on. If anyone would like me to post a howto on enabling DAV for a single directory with basic authentication let me know.
I verified it was indeed working by publishing a calendar to a folder using the Apple iCal program and also was able to log into it using CyberDuck which I believe is available for both Mac and Windows.
Hopefully this is of help to someone.