TKServer

Making a WebDAV directory in Linux and Plesk 9.5

Making a WebDAV directory in Linux and Plesk 9.5

Reference

Many thanks to mediatemplate.  They were the one web site I found which gave me good enough instructions to make my Plesk 9.5 server into a WebDAV machine.  To insure I don't forget how to do this down the road I'm pasting the instructions here.  Below is copied and pasted from their instructions.

FIRST create a password protected directory in plesk 9.5.x.

Steps

 

  1. Log into your server as root using ssh.  Make sure that mod_dav is enabled on your server. The (dv) server should have it enabled by default. After running this command make sure that the LoadModule does not start with a #. The # means that the module is commented out.  If necessary remove the # and restart httpd:
     grep "LoadModule dav_" /etc/httpd/conf/httpd.conf
  2. Now check the WebDAV section in the same httpd.conf file. The location for the DAV lock database must be specified in the global section of your httpd.conf file using the DavLockDB directive. The directory containing the lock database file must be writable by the User and Group under which Apache is running.  You should see the following lines in that same file:

    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
  3. Next we need to create a vhost.conf file, or add to your existing one, that will need to be saved in the /var/www/vhosts/mt-example.com/conf directory.  Change the first line accordingly.  For this article we will be using a directory named Dav:
    <Directory /var/www/vhosts/mt-example.com/httpdocs/Dav >
    Dav On
    AllowOverride none
    </Directory>
  4. For WebDav to work properly we will also need to change ownership of the Dav directory to the apache user:
     chown -R apache /var/www/vhosts/mt-example.com/httpdocs/Dav
  5. Reconfigure your webserver so it will look for your new vhost.conf file by running the following commmand:
     /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=mt-example.com

You should now be able to connect using any WebDav client!  Remember that you need to authenticate using the credentials you configured in Plesk for your directory.

Written by Administrator