Wednesday, March 20, 2013

Installation of davical on debian 6.0 squeeze

First i install the packages with aptitude:
aptitude install apache2 php5 postgresql davical davical-doc

For using you need Apache, PHP 5 and PostgresSQL . These are part of the official Debian repositories.

The next step is to create the configuration file:
/etc/apache2/conf.d/davical.conf

The file is created with this values, it is used from apache as alias file, so
that the path to the davical files is found: (File is without encryption)

Alias /davical /usr/share/davical/htdocs
<Directory /usr/share/davical/htdocs>
Options Indexes
DirectoryIndex index.php
php_flag magic_quotes_gpc Off
php_flag register_globals Off
php_value include_path /usr/share/awl/inc
</Directory>


Restarting Apache.
/etc/init.d/apache restart

Now we do the database configuration. This configuration is for apache and database is
on the same server. This file is created with the chmod 644.
/etc/davical/config.php'

I put this lines into the config.php file:

<?php
$c->default_locale = de_DE.UTF-8;
$c->pg_connect[] = 'dbname=davical user=davical_app';
?>

Next step is to create two database users. For this we change to the user "postgres" with the su command and create the accounts:

su postgres
createuser davical_app
createuser davical_dba


The question for superuser, roles and databases we answer with no.

Now we edit this file:
/etc/postgresql\8.4\main\pg_hba.conf

And add this two lines:

local davical davical_dba trust
local davical davical_app trust

Now we must restart the postgresql database:
/etc/init.d/postgresql restart

The davical package come with a shell script, that creates the database. We start it as postgres user  again:
su postgres
/usr/share/davical/dba/vreate-database.sh


Important: After finnishing the script the admin password is shown, you must note it !!

Now we can access to the installation with a webbrowser:
ipadresse/davical

Note for installing thunderbird lightning:

The address for the caldav account looks like this:

http://IP-ADRESSE/davical/caldav.php/USERNAME/home/

1 comment:

  1. Why did you stop using Radicale (http://experienceswithdebian.blogspot.cz/2012/12/using-radicale-as-caldav-calendarserver.html)?

    ReplyDelete