This manual is deprecated. Please visit https://groupoffice.readthedocs.io for the latest documentation.

WebDAV

From Group-Office Groupware and CRM Documentation
Revision as of 12:40, 17 August 2011 by Rasos (Talk | contribs) (changed "url.to.groupoffice" default value "your.domain/groupoffice", as notation was confusing. Anybody who changed default directory groupoffice will know what to do.)

Jump to: navigation, search

Note: This feature is only available in 3.6 and higher.

With WebDAV you can mount the Group-Office files as a network share on your desktop. First you must determine the baseURI.

Server Installation

If you installed the Debian packages you don't have to install anything on the server. Everything is configured by default and you can move on to the client configuration.

Ideally your Apache webserver is configured with an alias

Alias /webdav /path/to/groupoffice/modules/dav/files.php

In this case your baseURI is:

http(s)://your.url.to.groupoffice/webdav/

Otherwise the URL will not work on Windows and it's:

http(s)://your.url.to.groupoffice/modules/dav/files.php/

The WebDAV feature is based on SabreDAV. You can find more information about clients on that page too.

The default value for your.url.to.groupoffice/ is your.domain/groupoffice/

Installation when PHP runs in CGI mode

If you use PHP through CGI or FastCGI and Apache authentication headers are not passed through by default. You can enable this with the following mod_rewrite rule:

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule> 

If you already had a mod_rewrite rule to map all urls to a server file, you might need to change this to something like:

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule .* /modules/caldav/calendar.php [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule> 

Note the /modules/caldav/calendar.php. Make sure this reflects the correct relative URL of your server file.

Windows

Use the URL above and follow the instructions here:

http://code.google.com/p/sabredav/wiki/Windows

Davfs2

Make sure "davfs2" is installed.

Create a mount point as root:

mkdir /media/groupoffice/

Add to /etc/davfs2/davfs2.conf (See https://bugs.launchpad.net/ubuntu/+source/davfs2/+bug/459998):

ignore_home kernoops

Add your user to the davfs2 group in /etc/group. Find the line with davfs2 and append your user name like this:

davfs2:x:130:username


Add this line in /etc/fstab (adapt the path to groupoffice, if it is not default /groupoffice on your server):

https://your.domain/groupoffice/modules/dav/files.php/ /media/groupoffice davfs user,noauto,rw 0 0

Then, add the following line to /etc/davfs2/secrets:

https://your.domain/groupoffice/modules/dav/files.php/    username    mypassword

Now run:

chmod u+s /sbin/mount.davfs

Now you can mount the drive with the file manager or on the terminal as the normal user:

mount /media/groupoffice/

And you should be able to browse your Group-Office files.