Installing AgenDAV, a self hosted calendar

Create a virtual server.
In the public web directory:

tar xf agendav-2.0.0.tar.gz
cd agendav-2.0.0/web
curl -s | php
php composer.phar install --prefer-dist --no-dev

Edit /etc/apache2/sites-available/
Add at the end:

<Location />
   RewriteEngine On
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^ index.php [QSA,L]

Modify DocumentRoot:

DocumentRoot /home/joel/domains/

Create a mysql db and assign a user and password for it.
Set permissions (replace www-data with the virtualhost user):
chown -R www-data:www-data web/
chmod -R 750 web/var/

Edit file settings.php:

cd web/config/
cp default.settings.php settings.php
emacs settings.php

Now migrate databases:

cd /home/joel/domains/
php agendavcli migrations:migrate

Now try going to the dav url.


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.