{"id":17479,"date":"2015-08-19T13:17:01","date_gmt":"2015-08-19T18:17:01","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17479"},"modified":"2022-12-16T05:08:04","modified_gmt":"2022-12-16T11:08:04","slug":"install-sabrekatana-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-sabrekatana-on-a-centos-7-vps\/","title":{"rendered":"Install sabre\/katana on a CentOS 7 VPS"},"content":{"rendered":"
In this article we will install sabre\/katana on a CentOS 7 VPS<\/a> 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.<\/p>\n In order to run sabre\/katana on your CentOS 7 server, you need to have the following requirements installed:<\/p>\n Log in to your server via SSH as user root<\/p>\n and make sure that all packages are fully up to date by executing the following command<\/p>\n Run the following command to install MariaDB database server<\/p>\n Start the MariaDB database server and enable it to start at the boot time<\/p>\n Run the ‘mysql_secure_installation’ script to secure the database server and set your MariaDB root password<\/p>\n Log in to the MariaDB server using the ‘root’ user and create new database end user.<\/p>\n Replace ‘PASSWORD’ with an actual strong password.<\/p>\n Now, we will install Apache web server<\/p>\n Same as we did with MariaDB, start the Apache web server and add it to automatically start on the system start-up<\/p>\n Now we need to install PHP among with few PHP modules<\/p>\n Download the latest ZIP archive of sabre\/katana from GitHub<\/a> to your server. At the moment of writing this article it is version 0.3.2<\/p>\n Create a directory for sabre\/katana’s files inside the document root directory on your server. Usually it is the ‘\/var\/www\/html\/’ directory.<\/p>\n Unpack the downloaded archive to the created directory<\/p>\n Change the ownership of the ‘katana’ directory<\/p>\n Next, create Apache virtual host for your domain. Create ‘\/etc\/httpd\/conf.d\/vhosts.conf’ directory with the following content<\/p>\n and create the virtual host<\/p>\n Restart the web server for the changes to take effect.<\/p>\n Finally, open a web browser and navigate to http:\/\/yourdomain.com\/public\/install.php to run the installer and follow the instructions in the browser to finish the installation.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install sabre\/katana for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS<\/strong><\/span>. 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.<\/p>\n","protected":false},"excerpt":{"rendered":" In this article we will install sabre\/katana on a CentOS 7 VPS with Apache, MariaDB and PHP. Sabre\/katana is free … <\/p>\n\n
ssh root@IP<\/pre>\n
yum -y update<\/pre>\n
yum install mariadb mariadb-server<\/pre>\n
systemctl start mariadb\r\nsystemctl enable mariadb<\/pre>\n
mysql -u root -p\r\n\r\nCREATE DATABASE katana;\r\nCREATE USER 'katanauser'@'localhost' IDENTIFIED BY 'PASSWORD';\r\nGRANT ALL PRIVILEGES ON `katana`.* TO 'katanauser'@'localhost';\r\nFLUSH PRIVILEGES;<\/pre>\n
yum install httpd<\/pre>\n
systemctl start httpd\r\nsystemctl enable httpd<\/pre>\n
yum install php php-gd php-common<\/pre>\n
wget https:\/\/github.com\/fruux\/sabre-katana\/releases\/download\/0.3.2\/katana_v0.3.2.zip<\/pre>\n
mkdir \/var\/www\/html\/katana<\/pre>\n
unzip katana_v0.3.2.zip -d \/var\/www\/html\/katana\/<\/pre>\n
chown -R apache:apache \/var\/www\/html\/katana<\/pre>\n
vim \/etc\/httpd\/conf.d\/vhosts.conf\r\n\r\nIncludeOptional vhosts.d\/*.conf<\/pre>\n
vim \/etc\/httpd\/vhosts.d\/yourdomain.com.conf\r\n\r\n<VirtualHost YOUR_SERVER_IP:80>\r\nServerAdmin webmaster@yourdomain.com\r\nDocumentRoot \"\/var\/www\/html\/katana\/\"\r\nServerName yourdomain.com\r\nServerAlias www.yourdomain.com\r\nErrorLog \"\/var\/log\/httpd\/yourdomain.com-error_log\"\r\nCustomLog \"\/var\/log\/httpd\/yourdomain.com-access_log\" combined\r\n\r\n<Directory \"\/var\/www\/html\/katana\/\">\r\nDirectoryIndex index.html index.php\r\nOptions FollowSymLinks\r\nAllowOverride All\r\nRequire all granted\r\n<\/Directory>\r\n<\/VirtualHost><\/pre>\n
systemctl restart httpd<\/pre>\n