{"id":17550,"date":"2015-10-08T15:30:24","date_gmt":"2015-10-08T20:30:24","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17550"},"modified":"2022-06-03T03:44:08","modified_gmt":"2022-06-03T08:44:08","slug":"how-to-install-subrion-cms-on-a-debian-8-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-subrion-cms-on-a-debian-8-vps\/","title":{"rendered":"How to Install Subrion CMS on a Debian 8 VPS"},"content":{"rendered":"
In this tutorial, we will show you how to install Subrion CMS on a Debian 8 VPS<\/strong> 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.<\/span><\/p>\n This tutorial was tested and written for a Debian 8 VPS<\/a>, but it should work on any Linux distribution.<\/p>\n Let’s start with the installation. Download the latest version of Subrion CMS available at http:\/\/tools.subrion.org\/get\/ to the server and extract it using the following commands:<\/p>\n Create a new MySQL database for Subrion to use and assign a user to it with full permissions:<\/p>\n Do not forget to replace ‘your-password’ with a strong password. Then, run the following command:<\/p>\n Or, use the a2ensite to enable the ‘subrion.conf’ configuration in Apache:<\/p>\n Edit the ‘subrion.conf’ configuration file:<\/p>\n and add the following lines to it:<\/p>\n In order to enable file uploads and disable Magic Quotes GPC and Register Globals in PHP, edit the php.ini configuration file and add\/modify the following lines:<\/p>\n Optionally, add\/modify the following lines in php.ini:<\/p>\n 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:<\/p>\n Enable the Apache2 rewrite module if it is not already done so:<\/p>\n Restart the Apache web server for the changes to take effect:<\/p>\n 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:<\/p>\n Also, change the permissions of includes\/config.inc.php file to unwritable:<\/p>\n That is it. The Subrion CMS installation is now complete. PS<\/span>.<\/strong> 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 tutorial, we will show you how to install Subrion CMS on a Debian 8 VPS with Apache, PHP … <\/p>\n
\nThis 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:<\/p>\n\n
cd \/opt\r\nwget http:\/\/tools.subrion.org\/get\/latest.zip\r\nmkdir -p \/var\/www\/html\/subrion\r\nunzip -o latest.zip -d \/var\/www\/html\/subrion\/<\/pre>\n
mysql -u root -p\r\nmysql> CREATE DATABASE subriondb;\r\nmysql> GRANT ALL PRIVILEGES ON subriondb.* TO 'subrionuser'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION;\r\nmysql> FLUSH PRIVILEGES;\r\nmysql> quit<\/pre>\n
\nCreate a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘subrion.conf’ on your virtual server:<\/p>\ntouch \/etc\/apache2\/sites-available\/subrion.conf<\/pre>\n
ln -s \/etc\/apache2\/sites-available\/subrion.conf \/etc\/apache2\/sites-enabled\/subrion.conf<\/pre>\n
sudo a2ensite subrion.conf<\/pre>\n
vi \/etc\/apache2\/sites-available\/subrion.conf<\/pre>\n
<VirtualHost *:80>\r\nServerAdmin admin@yourdomain.com\r\nDocumentRoot \/var\/www\/html\/subrion\/\r\nServerName yourdomain.com\r\nServerAlias www.yourdomain.com\r\n<Directory \/var\/www\/html\/subrion\/>\r\nOptions FollowSymLinks\r\nAllowOverride All\r\n<\/Directory>\r\nErrorLog \/var\/log\/apache2\/yourdomain.com-error_log\r\nCustomLog \/var\/log\/apache2\/yourdomain.com-access_log common\r\n<\/VirtualHost><\/pre>\n
vi \/etc\/php5\/apache2\/php.ini<\/pre>\n
file_uploads = On\t\r\nmagic_quotes_gpc = Off\t\r\nregister_globals = Off<\/pre>\n
memory_limit = 128M\r\ndefault_charset = \"UTF-8\"\t\r\nmbstring.func_overload = 0<\/pre>\n
sudo chown -R www-data:www-data \/var\/www\/html\/subrion\/<\/pre>\n
sudo a2enmod rewrite<\/pre>\n
service apache2 restart<\/pre>\n
rm \/var\/www\/html\/subrion\/install\/modules\/module.install.php<\/pre>\n
chmod a-w \/var\/www\/html\/subrion\/includes\/config.inc.php<\/pre>\n
\nOf course you don’t have to do any of this if you use one of our Optimized Debian Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Subrion CMS <\/strong> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n