webdav

I hate to drag up an old thread, but I am.

If you want set up webdav for Apache2 here it is.

Apache2 already comes with web_dav but is not enable with the da_apache2.

To enable mod_dav I edited the configure.apache_2 file at:

/usr/local/directadmin/customapache/

add this to the list

--enable-dav \



I used the da apache2 build located at:

http://www.directadmin.com/features.php?id=441

Go ahead and rebuild apache all steps.


Add this in the httpd.conf

DAVLockDB /var/db/DAVLock

Now you have to know how your apache is running is it apache, nobody, www.

To find out:

grep User httpd.conf
grep Group httpd.conf

I will use apache.

So next create the empty lock databases and make sure that they are owned and writable by the web server:

touch /var/db/DAVLock.dir
touch /var/db/DAVLock.pag
chown apache /var/db/DAVLock.*
chgrp apache /var/db/DAVLock.*
chmod 640 /var/db/DAVLock.*


Add this to any VirtualHost

<Directory .../dav_docs>
# Make sure you have authenication

# Most Important
DAV On

#
Order allow,deny
Allow from All
#
Options All
</Directory>

Then we create the dav_docs:

mkdir ....../dav_docs
chown apache ....../dav_docs
chgrp apache ....../dav_docs

restart apache

We use webdrive for our web_dav client!

I though I would post if anybody was looking. ;)

Robert
 
It's fairly easy to set WebDAV up if you are using Apache 1.3.34. If anyone's interested I can post what I did to make it go.
 
OK, here goes. It has been a few weeks since I did this but I think I can recreate the necessary steps.

The first thing I must say is that I can take no responsibility if this screws up your system in any way. My DirectAdmin is installed on a CentOS 4.1 box so my instructions assume that, you may have to modify for your platform.

1. You will need to be running Apache 1.3.34, anything earlier is incompatible with WebDAV (from WebDAV documentation). If you have not already done this update check out this link for instructions (look for the first post by DirectAdmin Support in the thread for easy instructions.)

http://www.directadmin.com/forum/showthread.php?s=&threadid=10194&highlight=apache+1.3.34

2. Download the source code for the WebDAV module from...

http://www.webdav.org/mod_dav/mod_dav-1.0.3-1.3.6.tar.gz

and place this file somewhere on your DirectAdmin box. I put mine in /home/admin

3. ssh into your directadmin box and type "cd /home/admin" (assuming that's where you put it.)

4. Type "tar xvfz mod_dav-1.0.3-1.3.6.tar.gz"

5. Type "cd mod_dav-1.0.3-1.3.6"

6. Type "./configure --with-apxs=/usr/sbin/apxs"

7. Type "make"

8. Type "make install" (You will of course need to be root to do this)

9. Edit the Apache config file "httpd.conf" which is located in /etc/httpd/conf/

You need to make sure that the following lines are in there...

LoadModule dav_module /usr/lib/apache/libdav.so

and

AddModule mod_dav.c

I am pretty sure that these were added automatically for me and that the default config file already had these lines in them which I commented out just in case (to comment them out simply insert a '#' character in front of each of these lines...

<IfDefine HAVE_DAV>
LoadModule dav_module modules/libdav.so
</IfDefine>

<IfDefine HAVE_DAV>
AddModule mod_dav.c
</IfDefine>

While you're in there look for some lines like this:

User apache
Group apache

If User and Group are set to something other than "apache" you will need to know that later.

10. Set up and configure the lock database

I set mine up in /var/db/dav and my instructions will assume that same location.

httpd.conf (located in /etc/httpd/conf) needs to have the following line added to it...

DAVLockDB /var/db/dav/DAVLock

(I put mine after the line 'DocumentRoot "/var/www/html"' and before the first '<Directory />' lines in the config file.)

Then type "mkdir /var/db/dav"
Then "chown apache:apache /var/db/dav"

If you found that the User and Group from the above step was something other than "apache" use that instead in the chown command above.

11. Edit the httpd.conf file in the user's directory that you want WebDAV enabled for and restart apache.

Here is an example that worked for me. I use WebDAV primarilly to allow the Macintosh iCal program to be able to subscribe to and publish to calendars that are hosted on my server in a WebDAV enabled folder. The calendars are located in the following directory and are owned by user: apache and group: apache (owership must be the same as the user and group found in step 9).

/home/<username>/domains/<domainname>/private_html/calendars/calendars

I want the users to be able to access this folder as:

https://<domainname>/icals

So I add the following lines to my httpd.conf file which is located in "/usr/local/directadmin/data/users/<username>/"

Alias /icals /home/<username>/domains/<domainname>/private_html/calendars/calendars

<Location /icals>
Options All
Order allow,deny
Allow from All
DAV On
</Location>

In the above examples replace <username> and <domainname> with something appropriate for your situation.

To restart Apache type "/sbin/service httpd restart"

Of course the configuration will vary for your needs but hopefully posting mine will help someone out there.

For testing purposes I recommend using Cadaver on Linux or Freebsd systems or Goliath if you are on a Mac (I have not looked into WebDAV applications for Windows, maybe somone else can post a recommendation).

Much more information can be found at www.webdav.org.
 
Just put your mouse over the link and right click and copy shortcut. :)
 
mod_dav is included by default in the new customapache beta script :) I think it's the time to wake up this thread :)
 
My understanding is that mod_dav replaces FrontPage Extensions (FPX); that you can't have both.

If so, then does this require any changes to the DA user interface? Or does mod_dav work transparently with FrontPage software?

I thought that the new script was to eventually become an official part of DirectAdmin, but I don't think FrontPage support should be dropped until it's no longer available. At least not unless DA makes an official decision.

Also, does mod_dav write files as the user, so the user can still use ftp if s/he wishes, as with FPX?

Jeff
 
It doesn't require any changes to the DirectAdmin user interface. You can use MS Frontpage to upload files with DAV :) You can load them both (mod_dav and mod_frontpage), but FrontPage was discontinued by Microsoft as of 2006. The replacements are SharePoint Designer and Expression Web. See the following for more details:
http://office.microsoft.com/en-us/frontpage/default.aspx

With the disconintuation of FrontPage, Microsoft also discontinued the FrontPage extensions, hence their discontituation for Apache. This was Microsoft's decision. This killed the 'easy' FrontPage publishing method, leaving only FTP, WebDav and SMB.

I also suggest you to read http://www.rtr.com/fpsupport/

P.S. the largest DirectAdmin competitor cPanel will have webdav support cPanel 11. It has it in EDGE release.
 
I think it will require a new interface to setup the new user/passwords to go with it. If it just needs the .htpasswd type files, then we can even just use the password protected directory files to set that up..or some sort of hybrid. Frontpage is pretty much on it's way out, that much is clear (FP interface will remain in DA, there is an option to turn it off once needed).

The only major hurdle is the fact that mod_dav would be running as apache, so DA would have to continually re-chown the group owership of files to apache to ensure it has write access (the user owneship will remain the DA user so the filemanager works).

Also, from what I gather, mod_dav doesn't support the FP features like counters, form mailers etc.. (I could be wrong here), so existing FP users will need to learn the normal way of doing these things.

John
 
Once again Microsoft creates a huge mess and leaves us webhosters in the lurch.

My gut feeling is leave everything alone, since we'll get a lot of support issues if important FP features stop working.

But that's only my opinion.

Jeff
 
Also, from what I gather, mod_dav doesn't support the FP features like counters, form mailers etc.. (I could be wrong here), so existing FP users will need to learn the normal way of doing these things.

Gasp!!! Surely you jest...users actually take off the training wheels and learn how to use real tools? You should be tarred and featured for even suggesting such a thing. :D
 
Don't forget Sean, you're the guy who's going to have to support all those users, or risk losing them to someone who has working FPX.

Jeff
 
Don't forget Sean, you're the guy who's going to have to support all those users, or risk losing them to someone who has working FPX.

Jeff

Let's see...2% of my clients who take 90% of my time...hmm...;)

Yes, that's an exaggeration. I doubt I would feel any kind of pinch if I lost FP users. I'm kind of tired of trying to explain to them why their sites don't work when they upload above the webroot, or when they delete the _vti* folders, etc..lol.
 
Is there any timeframe in which webdav will be supported in DA? or do we need to 'hack' stuff ourself? :)

remco
 
Let's see...2% of my clients who take 90% of my time...hmm...;)

Yes, that's an exaggeration. I doubt I would feel any kind of pinch if I lost FP users. I'm kind of tired of trying to explain to them why their sites don't work when they upload above the webroot, or when they delete the _vti* folders, etc..lol.

Well, if you are REALLY tired of them, send them and their money over here...after all, you should be happy with what you do.
 
Back
Top