Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: WebDAV repository.

Talk:WebDAV repository

From MoodleDocs
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Chris -can this go on the main page? I haven't a clue about the technicalities behind webdav but your notes here are very recent?--Mary Cooch 03:29, 27 September 2011 (WST)

Create WebDAV server

I will be doing this in Linux (Ubuntu 11.04). Currently am building a few servers from scratch for the first time. I increased my file size and reset the timeouts in php.ini. This is working for now. However, I had a 125 MB backup and thought FTP would be easier...not for now :) --Chris collman 05:16, 15 July 2011 (WST) Found this for ubuntu 11.04 and will be seeing if it works:

  1. enable webdav modules
    1. a2enmod dav_fs
    2. a2enmod dav
  2. create webdave directory and add permissions
    1. mkdir -p /var/www/webdav
    2. chown www-data. /var/www/webdav
    3. chmod 770 /var/www/webdav
  3. Restart apche2 to take the last modifications
    1. /etc/init.d/apache2 restart
  4. vi /etc/apache2/conf.d/webdav.conf
Alias /webdav /var/www/webdav
<Location /webdav>
DAV On
#SSLRequireSSL
Options None
AuthType Basic
AuthName WebDAV
AuthUserFile /etc/apache2/conf.d/.htpasswd
<LimitExcept GET OPTIONS>
Order allow,deny
Allow from all
# IP address you allow
Require valid-user
</LimitExcept>
</Location>
  1. run this command to apply the webdav encoding
a2enmod dav* encoding
Enabling module dav.
Considering dependency dav for dav_fs:
Module dav already enabled
Enabling module dav_fs.
Enabling module dav_lock.
Enabling module encoding.
Run '/etc/init.d/apache2 restart' to activate new configuration!
  1. run under root access
htpasswd  -c /etc/apache2/conf.d/.htpasswd admin
New password:
set password
Re-type new password:
# confirm
Adding password for user admin
/etc/init.d/apache2 restart
* Restarting web server apache2
... waiting    ...done.

To configure local computer

To enable WebDAV in 2.1

2.1 Path to enable WebDAV.


   Site administration > plugins >repositories > manager repositories

Change WebDav to enable then you will see a popup screen with check boxes:

  • Allow users to add a repository instance into the course
  • Allow users to add a repository instance into the user context

Now click on settings next to Manage repositories >WebDAV.