baïkal CalDav Server

Baïkal is a lightweight CalDAV+CardDAV server that offers an easy web interface and better adherence to the CalDav standard than e.g. Radicale

Before installing Baikal CalDav server you would need to install

# (if sqlite3 is used for storage)
sudo apt install nginx php php-fpm php-xml php-mbstring php-sabre-dav php-sqlite3 

Download the lates release of Baikal.

cd /var/www
curl -O https://github.com/sabre-io/Baikal/releases/download/0.9.4/baikal-0.9.4.zip
unzip baikal-0.9.4.zip

After uploading, make sure that the Specific and the config directories are writeable by your webserver process.

chown -R www-data:www-data Specific config

add to the Nginx server configuration:

server {
        # ...
        location /baikal/ {
                alias /var/www/baikal/html/;
                index index.php;
                location ~ \.php {
                        fastcgi_index index.php;
                        fastcgi_pass unix:/var/run/php/php-fpm.sock;
                        include fastcgi_params;
                        fastcgi_split_path_info  ^(.+\.php)(.*)$;
                        fastcgi_param   SCRIPT_FILENAME    $request_filename;

                        fastcgi_param   PATH_INFO       $fastcgi_path_info;

                        
                }
                charset utf-8;
                location ~ /(\.ht|Core|Specific|config) {
                    deny all;
                    return 404;
                }
        }
        rewrite ^/.well-known/caldav /baikal/dav.php redirect;
        rewrite ^/.well-known/carddav /baikal/dav.php redirect;
}

then reload the Nginx server and navigate to http://yourserver.example.org/baikal/html/ to continue installation process.