Configuring AgenDAV requires creating a settings.php file in the web/config/ directory.

You will find all available settings inside the file default.settings.php. Please, do not modify default.settings.php, as any changes will be lost if you upgrade AgenDAV.

Save a copy of the default.settings.php file as settings.php, or just copy the settings you want to modify, and start configuring your instance.


Title of every page

Image filename which will be used as a logo. Has to be a valid filename placed inside web/public/img/ directory.


Text to be placed in the footer.


Array of IPs of trusted proxies, on which the HTTP_X_FORWARDED_FOR header will be honored.


Database connection parameters. Uses Doctrine DBAL syntax, so follow the guide at for a better reference. Example:

$app['db.options'] = [
    'dbname' => 'agendav',
    'user' => 'user',
    'password' => 'password',
    'host' => 'localhost',
    'driver' => 'pdo_mysql',


When using an SQLite database, note that there is a bug when using URL based configurations. Use the alternative syntax (path and driver) instead.


Key that will be used to encrypt passwords when storing them on the database, so use a long one.


Name that the CSRF parameter will have.


Full path where logs will be created. Add a trailing slash. Example:

$app['log.path'] = '/var/log/agendav/';

Make sure the user that runs your web server has write permission on that directory.


Base CalDAV URL used to build all CalDAV URLs.


// SabreDAV
$app['caldav_base_url'] = 'http://caldav.server/cal.php';

// DAViCal
$app['caldav_base_url'] = 'http://caldav.server/caldav.php';

You have to specify which HTTP authentication method does your CalDAV server require. Both basic and digest authentication methods are supported.


// SabreDAV
$app['caldav.authmethod'] = 'digest';

// DAViCal
$app['caldav.authmethod'] = 'basic';

Whether to show CalDAV URL links or not in the edit dialog


The base URL that will be shown to users if caldav.publicurls is enabled. It’s not used for internal connections.

Do not add a trailing slash.


$app['caldav.baseurl.public'] = 'https://public.caldav.tld';

Enables calendar sharing between users

Note that calendar sharing requires full WebDAV ACL support on your CalDAV server. Some servers, such as SabreDAV (at least on current release, 1.5.6), don’t have full ACL support, so you should set this option to false if your server can’t handle ACLs.


Timezone to be used by default.

Make sure you use a valid timezone from


Default language to be used on AgenDAV interface.

Have a look at directory web/lang for a list of available languages.


Preferred time format: 12 hours (e.g. 3pm / 2:30am) or 24 hours (e.g. 15:00 / 2:30).

Set this option using a string ('12' or '24').


Default date format.

Available options are:

  • ymd: e.g. 2011/10/22
  • dmy: e.g. 22/10/2011
  • mdy: e.g. 10/22/2011

Which day should be considered the default first day of week.

0 means Sunday, 1 means Monday

Specify it as a number.


When logging out from AgenDAV, the URL the user will be redirected to.

Can be left empty to redirect user to login page again.


AgenDAV uses php.ini session settings. You can override most of them inside settings.php by using the Just copy it from prod.php and set any parameters you wish.

The following example makes sessions expire after 20 minutes of closing your browser in a low traffic instance:

$app[''] = [
   'name' => 'agendav_sess',
   'cookie_lifetime' => 0,
   // Every request has 10% chance of triggering session GC
   'gc_probability' => 1,
   'gc_divisor' => 10,
   'gc_maxlifetime' => 1200,
   'lifetime' => 1200,