How to install Subrion CMS on Ubuntu 21.04

To Install Subrion CMS on Ubuntu 21.04

Introduction

CMS means Content management system, it is the software used to manage the digital content. Subrion CMS is a free open source content management system that allows you to build websites for any purpose Subrion had framework API to add extra stuff using hooks, plugins, & packages. Prerequisites: • Apache Web server • Maria DB • PHP and its Modules

Installation Procedure:

Step 1: Check the OS version by using the below command

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.04
Release:	21.04
Codename:	hirsute

Step 2: Log in to the Maria DB by using the below command

root@linuxhelp:~# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 30
Server version: 10.5.12-MariaDB-0ubuntu0.21.04.1 Ubuntu 21.04




Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

Step 3: Create database for Subrion CMS using the below command

MariaDB [(none)]> create database subrion character set utf8mb4;
Query OK, 1 row affected (0.015 sec)

Step 4: Create a user named “suser” using the below command

MariaDB [subrion]> create user suser@localhost identified by 'linuxc';
Query OK, 0 rows affected (0.022 sec)

Step 5: Grant all privileges on process database for the user “suser” using the below command

MariaDB [subrion]> grant all on subrion.* to suser@localhost;
Query OK, 0 rows affected (0.004 sec)

Step 6: Flush privileges to make changes effect using the below command

MariaDB [subrion]> flush privileges;
Query OK, 0 rows affected (0.003 sec)

Step 7: Exit from the Maria DB

MariaDB [subrion]> exit 
Bye

Step 8: Download Subrion CMS by using the below command

root@linuxhelp:~# wget https://tools.subrion.org/get/latest.zip
--2021-11-25 01:44:39--  https://tools.subrion.org/get/latest.zip
Resolving tools.subrion.org (tools.subrion.org)... 148.251.129.172
Connecting to tools.subrion.org (tools.subrion.org)|148.251.129.172|:443... connected.
HTTP request sent, awaiting response... 200 OK


Length: 11694952 (11M) [application/zip]
Saving to: ‘latest.zip’

latest.zip                      100%[====================================================>]  11.15M  1.93MB/s    in 6.4s    

2021-11-25 01:44:46 (1.74 MB/s) - ‘latest.zip’ saved [11694952/11694952]

Step 9: Extract the downloaded file in Subrion directory by using the below command

root@linuxhelp:~# unzip latest.zip -d /var/www/subrion
Archive:  latest.zip
   creating: /var/www/subrion/admin/
  inflating: /var/www/subrion/admin/actions.php  
  inflating: /var/www/subrion/admin/adminer.php  
  inflating: /var/www/subrion/admin/blocks.php  
  inflating: /var/www/subrion/admin/configuration.php  
  inflating: /var/www/subrion/admin/currencies.php  
  inflating: /var/www/subrion/admin/database.php  
  inflating: /var/www/subrion/admin/email-templates.php  
  inflating: /var/www/subrion/admin/fieldgroups.php  
  inflating: /var/www/subrion/admin/fields.php  
  inflating: /var/www/subrion/admin/hooks.php  
  inflating: /var/www/subrion/admin/image-types.php  
  inflating: /var/www/subrion/admin/index.php  
  inflating: /var/www/subrion/admin/invoices.php  
  inflating: /var/www/subrion/admin/languages.php  
  inflating: /var/www/subrion/admin/members.php  
  inflating: /var/www/subrion/admin/menus.php  
  inflating: /var/www/subrion/admin/modules.php  

Step 10: Change Ownership to the Subrion directory by using the below command

root@linuxhelp:~# chown -R www-data. /var/www/subrion/

Step 11: Change Permission to the Subrion directory by using the below command

root@linuxhelp:~# chmod -R 775 /var/www/subrion/

Step 12: Create Virtual Host for the Subrion CMS by using the below command

root@linuxhelp:~# vi /etc/apache2/sites-available/subrion.conf
<virtualhost *:80>
servername www.linuxhelp1.com
documentroot /var/www/subrion/

<directory /var/www/subrion/>
allowoverride all
allow from all
</directory>
</virtualhost>

Step 13: Disable the default Virtual Host file of apache by using the below command

root@linuxhelp:~# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2

Step 14: Enable the Virtual Host by using the below command

root@linuxhelp:~# a2ensite subrion.conf
Enabling site subrion.
To activate the new configuration, you need to run:
  systemctl reload apache2

Step 15: Enable the read write module of apache by using the below command

root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
  systemctl restart apache2

Step 16: Restart the apache webserver by using the below command

root@linuxhelp:~# systemctl restart apache2

Step 17: Make host entry for Subrion CMS by using the below command

root@linuxhelp:~# vi /etc/hosts
192.168.6.115 www.linuxhelp1.com

Step 18: Ping server name in browser as shown in the below image

Step 19: Configure the database as show in the below image

Step 20: Configure the Admin credentials as shown in the below image

Step 21: Login via Admin panel as shown in the below image

Step 22: This is the Dashboard of Subrion CMS

By this to install Subrion CMS on Ubuntu 21.04 has been completed

FAQ
Q
Is Subrion is Customizable?
A
Yes, Subrion is customizable because it is not encrypted.
Q
How to install templates and plugins?
A
We can install Plugins and templates in the admin panel of the Subrion page.
Q
Are plugins on Subrion CMS is usable?
A
Yes, we can use Subrion framework API to add extra stuff using hooks, plugins, & packages.
Q
From what the Subrion CMS is written on?
A
Subrion content management system is written in PHP5
Q
How to download the Subrion CMS?
A
To download the Subrion CMS use the following link "https://tools.subrion.org/get/latest.zip"