Install CardDAV for Roundcubemail on Ubuntu 18.04

The plugin RCMCardDav for Roundcube is the connector to the Nextcloud contacts.

To install it, log out of Roundcubemail first. This step is important because the plugin runs its database initialisation procedure only when a user logs in.

Update: Installation instructions for Ubuntu 20.04

Download & Install

cd /var/lib/roundcube/plugins 
wget && unzip
mv rcmcarddav-master carddav && rm && cd carddav
curl -sS | php
php composer.phar update && php composer.phar install
chown -R www-data:www-data /var/lib/roundcube/plugins/carddav

When you see an error like

Class 'Httpful\Bootstrap' not found

you have most certainly installed the GIT version in the plugins directory of Roundcube.

Modify pwstore_scheme

$prefs['_GLOBAL']['pwstore_scheme'] = 'des_key';

Add “carddav” to Roundcube configuration

vi ../../config/
$config['plugins'] = array("carddav", ...

The carddav plugin is now installed.

Add Nextcloud contacts to Roundcube

Login to Roundcubemail and click on “Settings” and fill in the credentials of your Nextcloud account.

The CardDav-URL is


See also