How to Install subrion cms on centos 8
How to Install subrion cms on centos 8
Subrion CMS is a free and open source CMS developed using PHP and MySQl database. It comprises of WYSIWYG editors which are a great way for publishing content these days. They follow SEO Concepts to make your content SEO-friendly as possible. This tutorial covers method to install Subrion CMS On CentOS 8.
Installation process :
Check the CentOS version by using the following command
[root@linuxhelp ~]# rpm -q centos-release
centos-release-8.1-1.1911.0.8.el8.x86_64
Before the installation, you need to download the Subrion installation package.
[root@linuxhelp ~]# wget https://github.com/intelliants/subrion/archive/develop.zip
--2020-09-04 16:40:14-- https://github.com/intelliants/subrion/archive/develop.zip
Resolving github.com (github.com)... 13.234.176.102
Connecting to github.com (github.com)|13.234.176.102|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/intelliants/subrion/zip/develop [following]
--2020-09-04 16:40:14-- https://codeload.github.com/intelliants/subrion/zip/develop
Resolving codeload.github.com (codeload.github.com)... 13.233.43.20
Connecting to codeload.github.com (codeload.github.com)|13.233.43.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘develop.zip’
develop.zip [ <=> ] 11.46M 1.01MB/s in 12s
2020-09-04 16:40:27 (946 KB/s) - ‘develop.zip’ saved [12020442]
Once the download is completed, extract the Subrion by using the following command
[root@linuxhelp ~]# unzip develop.zip
Archive: develop.zip
296ddae2c0d62a378014884436f49e466c80965c
creating: subrion-develop/
inflating: subrion-develop/.gitignore
inflating: subrion-develop/.htaccess
inflating: subrion-develop/CONTRIBUTING.md
inflating: subrion-develop/README.md
creating: subrion-develop/admin/
inflating: subrion-develop/admin/actions.php
inflating: subrion-develop/admin/adminer.php
.
.
inflating: subrion-develop/templates/kickstart/registration.tpl
inflating: subrion-develop/templates/kickstart/render-menu.tpl
creating: subrion-develop/updates/
extracting: subrion-develop/updates/.htaccess
creating: subrion-develop/uploads/
inflating: subrion-develop/uploads/.htaccess
Move the Subrion directory to apache root directory
[root@linuxhelp ~]# mv subrion-develop/ /var/www/subrion
Set the ownership and permission for Subrion CMS
[root@linuxhelp ~]# chown -R apache:apache /var/www/subrion
[root@linuxhelp ~]# chmod -R 755 /var/www/subrion/
Configure the virtualhost for Subrion CMS
[root@linuxhelp ~]# vim /etc/httpd/conf.d/subrion.conf
<virtualhost *:80>
Servername www.linuxhelp1.com
Documentroot /var/www/subrion
<directory /var/www/subrion>
allowoverride all
allow from all
</directory>
</virtualhost>
Now need to create a database for Subrion CMS
[root@linuxhelp ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 16
Server version: 10.3.17-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database subrion_db;
Query OK, 1 row affected (0.001 sec)
MariaDB [(none)]> create user 'subrion_user'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.026 sec)
MariaDB [(none)]> grant all privileges on subrion_db.* to 'subrion_user'@localhost;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> exit
Bye
Once all setup is completed restart the Apache service
[root@linuxhelp ~]# systemctl restart httpd
Once you have done it, go to the browser and enter the domain name.
# vim /etc/hosts
To install LAMP(Apache, MariaDB, and php7.0)
In MariaDB (create database and user and give privileges to that user )
Php installation with required following modules