How to Install Subrion CMS on a Debian 8 VPS

In this tutorial, we will show you how to install Subrion CMS on a Debian 8 VPS with Apache, PHP and MySQL installed on it. Subrion is a free content management system written in PHP that allows web developers to build websites for any purpose.

This tutorial was tested and written for a Debian 8 VPS, but it should work on any Linux distribution.

This install guide assumes that Apache, MySQL and PHP are already installed and configured on your virtual server. At the time of writing this tutorial, the latest stable version of Subrion CMS is 3.3.5 and it requires:

Do not forget to replace ‘your-password’ with a strong password.
Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘subrion.conf’ on your virtual server:

Set the proper file permissions for the Apache web server to write to ‘includes/config.inc.php’ file and ‘tmp’, ‘uploads’, ‘plugins’ and ‘backup’ directories:

sudo chown -R www-data:www-data /var/www/html/subrion/

Enable the Apache2 rewrite module if it is not already done so:

sudo a2enmod rewrite

Restart the Apache web server for the changes to take effect:

service apache2 restart

Open your favorite web browser, navigate to http://yourdomain.com and follow the easy instructions. For security reason, make sure to remove the ‘install/modules/module.install.php’ file after installation:

rm /var/www/html/subrion/install/modules/module.install.php

Also, change the permissions of includes/config.inc.php file to unwritable:

chmod a-w /var/www/html/subrion/includes/config.inc.php

That is it. The Subrion CMS installation is now complete.
Of course you don’t have to do any of this if you use one of our Optimized Debian Hosting services, in which case you can simply ask our expert Linux admins to install Subrion CMS 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.