{"id":2199,"date":"2018-10-31T20:02:16","date_gmt":"2018-10-31T20:02:16","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=2199"},"modified":"2018-11-02T10:15:37","modified_gmt":"2018-11-02T10:15:37","slug":"how-to-install-the-subrion-cms-on-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/31\/how-to-install-the-subrion-cms-on-linux\/","title":{"rendered":"How to install the Subrion CMS on Linux"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/tr4.cbsistatic.com\/hub\/i\/r\/2018\/10\/24\/c20e6977-e946-4e30-8253-23433c18c2e9\/resize\/770x\/ca6618e0e5b67d695fe7b60778decf72\/subrionhero.jpg\" alt=\"subrionhero.jpg\" width=\"770\" \/><\/p>\n<p>If your company is in need of a Content Management System (CMS), there are a bevy of available options, many of which are open source. One such option is the Subrion CMS. <a href=\"https:\/\/subrion.org\/\" target=\"_blank\" rel=\"noopener\">Subrion<\/a> is a free, open source CMS that includes all the features you need:<\/p>\n<ul>\n<li>Admin Dashboard<\/li>\n<li>Easy content management (including blogs, custom fields, languages, emails)<\/li>\n<li>Templates<\/li>\n<li>Plugins<\/li>\n<li>SEO Inclusive<\/li>\n<li>Mobile friendly<\/li>\n<li>User\/group management<\/li>\n<li>One-click upgrades<\/li>\n<\/ul>\n<p>Subrion can be installed on any platform that includes the following requirements:<\/p>\n<ul>\n<li>Apache 1.3 or above (mod_rewrite module installed)<\/li>\n<li>MySQL 4.1 or above<\/li>\n<li>PHP 5 or above (GD lib, XML lib, FreeType installed)<\/li>\n<\/ul>\n<p>SEE: <a href=\"http:\/\/www.techproresearch.com\/downloads\/linux-distribution-comparison-chart\/\" target=\"_blank\" rel=\"noopener\">Side-by-side chart of popular Linux distros<\/a> (Tech Pro Research)<\/p>\n<p>I&#8217;m going to walk you through the process of installing Subrion on the Ubuntu Server 16.04 platform. The process isn&#8217;t difficult, nor should it consume too much of your time.<\/p>\n<p>Let&#8217;s get to work.<\/p>\n<h2>Update\/Upgrade<\/h2>\n<p>The first thing will do is update and upgrade our server. Remember, this process could upgrade your kernel, which would require a reboot. If this is a production server, make sure the upgrade happens at a time when a reboot is feasible.<\/p>\n<p>To update and upgrade the Ubuntu Server, open a terminal window and issue the commands:<\/p>\n<p>sudo apt-get update<br \/>\nsudo apt-get upgrade<\/p>\n<p>Once those commands finish, if the kernel is upgraded, reboot the server with the command <em>sudo reboot<\/em>.<\/p>\n<h2>Installing dependencies<\/h2>\n<p>The next step is to install the necessary dependencies. We&#8217;ll first install the web and database servers with the following commands:<\/p>\n<p>sudo apt-get install apache2<br \/>\nsudo apt-get install mysql-server<\/p>\n<p>During the MySQL server install, you will be required to create\/verify an admin user password.<\/p>\n<p>Now we&#8217;ll install the remaining dependencies. Back at the terminal window, issue the following command:<\/p>\n<p>sudo apt-get install php libapache2-mod-php php-mysql php-mbstring php-xml php-gd unzip<\/p>\n<h2>Create the database<\/h2>\n<p>We now must create a database for Subrion. From the terminal window, issue the command:<\/p>\n<p>mysql -u root -p<\/p>\n<p>Type the admin user password you created during the MySQL server installation. From the MySQL prompt, type the following commands:<\/p>\n<p>CREATE DATABASE subrion;<br \/>\nGRANT ALL PRIVILEGES ON subrion.* TO &#8216;subrionuser&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;PASSWORD&#8217; WITH GRANT OPTION;<br \/>\nFLUSH PRIVILEGES;<br \/>\nEXIT;<\/p>\n<p>where PASSWORD is a unique, strong password.<\/p>\n<h2>Configure Apache<\/h2>\n<p>Apache must be configured to know about Subrion, as well as have mod_rewrite, php7.0, and mpm_prefork enabled. The first thing to do is edit the default Apache .conf file to add the mod_rewrite options. Issue the command:<\/p>\n<p>sudo nano \/etc\/apache2\/sites-available\/000-default.conf<\/p>\n<p>In that file, add the following under the <em>DocumentRoot \/var\/www\/html<\/em> line:<\/p>\n<p>&lt;Directory \/var\/www\/html&gt;<br \/>\nOptions Indexes FollowSymLinks MultiViews<br \/>\nAllowOverride All<br \/>\nRequire all granted<br \/>\n&lt;\/Directory&gt;<\/p>\n<p>Save and close that file.<\/p>\n<p>Enable the modules with the commands:<\/p>\n<p>sudo a2enmod mpm_prefork<br \/>\nsudo a2enmod php7.0<\/p>\n<p>Restart Apache with the command:<\/p>\n<p>sudo systemctl restart apache2<\/p>\n<h2>Download the Installer Package<\/h2>\n<p>Now we&#8217;re going to download the source package, unpack it, and give it the necessary permissions. First change into the <em>\/var\/www\/html<\/em> directory with the command:<\/p>\n<p>cd \/var\/www\/html<\/p>\n<p>Download the necessary file with the command:<\/p>\n<p>sudo wget https:\/\/tools.subrion.org\/get\/latest.zip<\/p>\n<p>Unzip the file with the command:<\/p>\n<p>sudo unzip latest.zip<\/p>\n<p>Set the necessary permissions with the following commands:<\/p>\n<p>sudo chmod -R 777 tmp\/ modules includes\/<br \/>\nsudo chmod 777 backup\/ uploads\/<\/p>\n<h2>Start the web-based installer<\/h2>\n<p>Open a browser and point it to <a href=\"http:\/\/SERVER_IP\/install\" target=\"_blank\" rel=\"noopener\">http:\/\/SERVER_IP\/install<\/a> (where SERVER_IP is the IP address of the server hosting Subrion). This should land you on the pre-installation check, where everything should test out okay (Figure A).<\/p>\n<p>Figure A<\/p>\n<p>The Subrion pre-installation checks out.<\/p>\n<p>&nbsp;<\/p>\n<p>Click Next to begin the installation. This process requires the following:<\/p>\n<ul>\n<li>License agreement (it&#8217;s a GPL license, so just click Next).<\/li>\n<li>General\/Database\/Administrator setup (Figure B).<\/li>\n<\/ul>\n<p>Figure B<\/p>\n<p>The Subrion install configuration page.<\/p>\n<p>&nbsp;<\/p>\n<p>Once you&#8217;ve configured Subrion, click Next and you&#8217;ll find yourself on the final page (Figure C), where you can install plugins, or go directly to either the Admin panel or the Home page.<\/p>\n<p>Figure C<\/p>\n<p>The Subrion installation is complete.<\/p>\n<p>&nbsp;<\/p>\n<p>The final step is to change the permissions of the Subrion configuration file so that it is unwritable and remove the install.php file. Do this with the commands:<\/p>\n<p>sudo chmod u-w \/var\/www\/html\/includes\/config.inc.php<br \/>\nsudo rm \/var\/www\/html\/install\/modules\/module.install.php<\/p>\n<p>At this point you can continue configuring Subrion to perfectly meet the needs of your business. Congratulations on successfully installing a powerful, flexible, open source Content Management System.<\/p>\n<h2>Also see<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.techrepublic.com\/article\/how-to-monitor-your-linux-server-with-glances\/\">How to monitor your Linux server with Glances<\/a> (TechRepublic)<\/li>\n<li><a href=\"https:\/\/www.techrepublic.com\/article\/how-to-install-zentyal-server-on-ubuntu-server-16-10\/\">How to install Zentyal Server on Ubuntu Server 16.10<\/a> (TechRepublic)<\/li>\n<li><a href=\"https:\/\/www.techrepublic.com\/article\/how-to-install-orangehrm-on-ubuntu-16-04\/\">How to install OrangeHRM on Ubuntu 16.04<\/a> (TechRepublic)<\/li>\n<li><a href=\"https:\/\/www.techrepublic.com\/article\/how-to-install-the-dolibarr-erpcrm-on-ubuntu-18-04\/\">How to install the Dolibarr ERP\/CRM on Ubuntu 18.04<\/a> (TechRepublic)<\/li>\n<li><a href=\"https:\/\/www.zdnet.com\/article\/around-62-of-all-internet-sites-will-run-an-unsupported-php-version-in-10-weeks\/\" target=\"_blank\" rel=\"noopener\">Around 62 percent of all Internet sites will run an unsupported PHP version in 10 weeks<\/a> (ZDNet)<\/li>\n<li><a href=\"https:\/\/www.zdnet.com\/article\/pretty-low-level-pretty-big-deal-apache-kafka-and-confluent-open-source-go-mainstream\/\" target=\"_blank\" rel=\"noopener\">Pretty low level, pretty big deal: Apache Kafka and Confluent Open Source go mainstream<\/a> (ZDNet)<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.techrepublic.com\/article\/how-to-install-the-subrion-cms-on-linux\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your company is in need of a Content Management System (CMS), there are a bevy of available options, many of which are open source. One such option is the Subrion CMS. Subrion is a free, open source CMS that includes all the features you need: Admin Dashboard Easy content management (including blogs, custom fields, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/31\/how-to-install-the-subrion-cms-on-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to install the Subrion CMS on Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2199","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=2199"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2199\/revisions"}],"predecessor-version":[{"id":2371,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2199\/revisions\/2371"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=2199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=2199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=2199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}