Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: WebDAV repository.
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:
- enable webdav modules
- a2enmod dav_fs
- a2enmod dav
- create webdave directory and add permissions
- mkdir -p /var/www/webdav
- chown www-data. /var/www/webdav
- chmod 770 /var/www/webdav
- Restart apche2 to take the last modifications
- /etc/init.d/apache2 restart
- 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>
- 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!
- 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.