Install sabre/katana on a CentOS 7 VPS

logo-katana-heroIn this article we will install sabre/katana on a CentOS 7 VPS with Apache, MariaDB and PHP. Sabre/katana is free and open source contact, calendar, task-list and file server. Based on world-widely used standards (respectively CardDAV, CalDAV and WebDAV), sabre/katana will help you to sync your important data between any device, from any location, at anytime. sabre/katana is powered by sabre/dav. It is an open source technology trusted by many leading companies such as ownCloud, Atmail, Box and fruux. sabre/katana is still under development, and many changes are still applying to the product.

In order to run sabre/katana on your CentOS 7 server, you need to have the following requirements installed:

  • PHP version 5.5 or newer
  • MySQL/MariaDB or SQLite database.
  • Web server, Apache or nginx

Log in to your server via SSH as user root

ssh root@IP

and make sure that all packages are fully up to date by executing the following command

yum -y update

Run the following command to install MariaDB database server

yum install mariadb mariadb-server

Start the MariaDB database server and enable it to start at the boot time

systemctl start mariadb
systemctl enable mariadb

Run the ‘mysql_secure_installation’ script to secure the database server and set your MariaDB root password

Log in to the MariaDB server using the ‘root’ user and create new database end user.

mysql -u root -p

CREATE USER 'katanauser'@'localhost' IDENTIFIED BY 'PASSWORD';
GRANT ALL PRIVILEGES ON `katana`.* TO 'katanauser'@'localhost';

Replace ‘PASSWORD’ with an actual strong password.

Now, we will install Apache web server

yum install httpd

Same as we did with MariaDB, start the Apache web server and add it to automatically start on the system start-up

systemctl start httpd
systemctl enable httpd

Now we need to install PHP among with few PHP modules

yum install php php-gd php-common

Download the latest ZIP archive of sabre/katana from GitHub to your server. At the moment of writing this article it is version 0.3.2


Create a directory for sabre/katana’s files inside the document root directory on your server. Usually it is the ‘/var/www/html/’ directory.

mkdir /var/www/html/katana

Unpack the downloaded archive to the created directory

Need a fast and easy fix?
✔ Unlimited Managed Support
✔ Supports Your Software
✔ 2 CPU Cores
✔ 2 GB RAM
✔ 50 GB PCIe4 NVMe Disk
✔ 1854 GeekBench Score
✔ Unmetered Data Transfer

Now just $43 .99

unzip -d /var/www/html/katana/

Change the ownership of the ‘katana’ directory

chown -R apache:apache /var/www/html/katana

Next, create Apache virtual host for your domain. Create ‘/etc/httpd/conf.d/vhosts.conf’ directory with the following content

vim /etc/httpd/conf.d/vhosts.conf

IncludeOptional vhosts.d/*.conf

and create the virtual host

vim /etc/httpd/vhosts.d/

<VirtualHost YOUR_SERVER_IP:80>
DocumentRoot "/var/www/html/katana/"
ErrorLog "/var/log/httpd/"
CustomLog "/var/log/httpd/" combined

<Directory "/var/www/html/katana/">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted

Restart the web server for the changes to take effect.

systemctl restart httpd

Finally, open a web browser and navigate to to run the installer and follow the instructions in the browser to finish the installation.

Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install sabre/katana for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

Leave a Comment