detrout / irony

My modifications to the kolabsys cal/carddav component iRony.
1 stars 2 forks source link

INTALLATION PROCEDURE

This package uses Composer to install and maintain required PHP libraries as well as the Roundcube framework. The requirements are basically the same as for Roundcube so please read the INSTALLATION section in the Roundcube framework's README file.

  1. Install Composer

Execute this in the project root directory:

$ curl -s http://getcomposer.org/installer | php

This will create a file named composer.phar in the project directory.

  1. Install Dependencies

$ php composer.phar install

  1. Import the Roundcube Framework, Kolab plugins and Chwala

3.1. Either copy or symlink the Roundcube framework package into lib/Roundcube 3.2. Either copy or symlink the roundcubemail-plugins-kolab into lib/plugins 3.3. Either copy or symlink the Chwala lib/ directory into lib/FileAPI

  1. Create local config

4.1. The configuration for this service inherits basic options from the Roundcube config. To make that available, smylink the Roundcube config files (main.inc.php and db.inc.php) into the local config/ directory.

4.2. Then copy the service-spcific config template:

$ cp config/dav.inc.php.sample config/dav.inc.php

Edit the local config/dav.inc.php file according to your setup and taste. These settings override the default config options from the Roundcube configuration.

  1. Give write access for the webserver user to the 'logs' and 'temp' folders:

$ chown logs $ chown temp

  1. Configure your webserver to point to the 'public_html' directory of this package as document root. This is necessary because Apple's Address Book App expects the CardDAV server to run at the root of the host 3.

Add following mod_rewrite configuration into virtual host config or .htaccess file:

RewriteEngine On
RewriteBase /
RewriteRule ^\.well-known/caldav   / [L,R=301]
RewriteRule ^\.well-known/carddav  / [L,R=301]

RewriteCond  %{REQUEST_FILENAME}  !-f
RewriteCond  %{REQUEST_FILENAME}  !-d
RewriteRule  (.*)                 index.php  [qsappend,last]

SetEnv CALDAV     1
SetEnv CARDDAV    1
SetEnv WEBDAV     1

Use the SetEnv properties to configure which services shall be provided under a certain host. If only WEBDAV is enabled, the shared folders are listed directly at root level and not in /files/.