User Tools

Site Tools


davical_debian8

This is an old revision of the document!


Davical CalDAV and CardDAV server on Debian 8

Prerequisites

  • Do a minimal Debian 8 installation with only SSH

Installation

Install the packages

apt-get install aptitude firewalld chrony open-vm-tools apache2 php5-ldap davical

Configuration

PostgresQL

/etc/postgresql/9.4/main/pg_hba.conf
.
.
# TYPE  DATABASE        USER            ADDRESS                 METHOD
local   davical         davical_app                             trust
local   davical         davical_dba                             trust
.
.
/etc/postgresql/9.4/main/pg_ident.conf
# MAPNAME       SYSTEM-USERNAME         PG-USERNAME
root            root                    postgres
root@dav:~# su - postgres
postgres@dav:~$ /usr/share/davical/dba/create-database.sh

Supported locales updated.
Updated view: dav_principal.sql applied.
CalDAV functions updated.
RRULE functions updated.
Database permissions updated.
NOTE
====
*  You will need to edit the PostgreSQL pg_hba.conf to allow the
   'davical_dba' database user access to the 'davical' database.

*  You will need to edit the PostgreSQL pg_hba.conf to allow the
   'davical_app' database user access to the 'davical' database.

*  The password for the 'admin' user has been set to 'SECRET_HASH'

Thanks for trying DAViCal!  Check in /usr/share/doc/davical/examples/ for
some configuration examples.  For help, visit #davical on irc.oftc.net.

Apache

/etc/apache2/sites-available/davical.conf
<VirtualHost *:80>
  DocumentRoot /usr/share/davical/htdocs
  DirectoryIndex index.php index.html
  ServerName localhost

  Alias /images/ /usr/share/davical/htdocs/images/
  php_value include_path /usr/share/davical/inc:/usr/share/awl/inc
  php_value magic_quotes_gpc 0
  php_value register_globals 0
  php_value error_reporting "E_ALL & ~E_NOTICE"
  php_value default_charset "utf-8"
</VirtualHost>
rm /etc/apache2/sites-enabled/*
cd /etc/apache2/sites-enabled
ln -s ../sites-available/davical.conf

Davical

davical_debian8.1437912152.txt.gz · Last modified: by herwarth