How to install and Configure Monstra CMS on CentOS 8.1

To Install and Configure Monstra CMS on CentOS 8.1

Introduction:

Monstra CMS is an open source project under the MIT LICENSE. It is a multi-user that can create several administrators, editors, users for your site. It is very flexible to provide amazing API’s for plugins,theme. This video will cover the installation and configuration of typesetter CMS on CentOS 8.1.

Prerequisite:

Apache

PHP and its module (php php-zip php-soap php-cli php-common php-gd php-mbstring php-mcrypt php-mysqlnd php-xml) Installation process:

To check the installed version of OS

[root@linuxhelp ~]# cat /etc/centos-release
CentOS Linux release 8.1.1911 (Core)

Now install apache web server

[root@linuxhelp ~]# yum install httpd -y
Last metadata expiration check: 1:23:11 ago on Tuesday 13 November 2020 12:10:30 PM IST.
Dependencies resolved.
httpd                                        x86_64                           2.4.37-21.module_el8.2.0+494+1df74eae                               AppStream                           1.7 M
Installing dependencies:
 …..
….
  apr-1.6.3-9.el8.x86_64                                       apr-util-1.6.1-6.el8.x86_64                                
 httpd-filesystem-2.4.37-21.module_el8.2.0+494+1df74eae.noarch    
  httpd-tools-2.4.37-21.module_el8.2.0+494+1df74eae.x86_64     mod_http2-1.11.3-3.module_el8.2.0+486+c01050f0.1.x86_64     centos-logos-httpd-80.5-2.el8.noarch                             
Complete!

Install the PHP modules and required modules

[root@linuxhelp yum install php php-zip php-soap php-cli php-common php-gd php-mbstring php-mcrypt php-mysqlnd php-xml
Last metadata expiration check: 0:00:14 ago on Tuesday 13 October 2020 03:10:48 PM IST.
Package php-mbstring-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-gd-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-mysqlnd-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-pecl-zip-1.15.3-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-soap-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-ldap-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-common-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Installing:
 php                                         x86_64                            7.2.24-1.module_el8.2.0+313+b04d0a66                               AppStream                            1.5 M
Installing dependencies:
 nginx-filesystem                            noarch                            1:1.14.1-9.module_el8.0.0+184+e34fea82                             AppStream                             24 k
 php-cli                                     x86_64                            7.2.24-1.module_el8.2.0+313+b04d0a66                               AppStream                            3.1 M
Installing weak dependencies:
 php-fpm                                     x86_64                            7.2.24-1.module_el8.2.0+313+b04d0a66                               AppStream                            1.6 M
……………….
………………….
 (4/4): php-cli-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64.rpm                                                                                               234 kB/s | 3.1 MB     00:13    
  Preparing        :                                                                                                                                                                     1/1 
  Installing       : php-cli-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                 ¼
……………..
…………… 
  Verifying        : php-fpm-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                 4/4 
Installed:
php-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64            php-fpm-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64        nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch       
  php-cli-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64       
Complete!

Configure the info.php by using the following command

[root@linuxhelp ~]# vim /var/www/html/info.php
<?
Phpinfo();
?>

Once the all step is completed restart the apache service

[root@linuxhelp ~]# systemctl restart httpd

Now download Monstra CMS using below command

[root@linuxhelp ~]# wget https://github.com/monstra-cms/monstra/archive/dev.zip
--2020-11-05 00:33:55--  https://github.com/monstra/monstra/archive/v5.1.zip
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘v5.1.zip’
    [                      <=>                                  ] 4,409,398   1.06MB/s   in 5.2s   
2020-11-05 00:34:03 (821 KB/s) - ‘v5.1.zip’ saved [4409398]

Now unzip the Downloaded master.zip file

[root@linuxhelp ~]# unzip v5.1.zip
Archive:  master.zip
a6fddeffdcaace190baa41abb8854903a4b03fd6
   creating: monstra-dev/
   creating: monstra-dev /.easymin/
  inflating: monstra-dev easymin/ignore_prefixes  
 extracting: monstra-dev /.easymin/ignore_types  
  inflating: monstra-dev /.easymin/noshrink_paths  
  inflating monstra-dev /.editorconfig  
  inflating: monstra-dev /.gitignore  
  inflating monstra-dev /.htaccess  
  inflating: monstra-dev /.travis.yml  
  inflating: monstra-dev /Addon.ini  
  inflating: monstra-dev /README.md  
     ……………….
     ……………………
    inflating: monstra-dev /themes/index.html  
  inflating: monstra-dev /web.config  

Move Landing file to Apache root directory

[root@linuxhelp ~]# mv monstra-dev /var/www/monstra

Now change the ownership using the below command

 [root@linuxhelp ~]# chown -R apache:apache /var/www/monstra

Change permission for typesetter using the below command

[root@linuxhelp ~]# chmod -R 755 /var/www/monstra

Next step is very crucial. configure the Apache VirtualHost for Monstra CMS. Open the .conf file for Landing.

[root@linuxhelp ~]# vim /etc/httpd/conf.d/monstra.conf 

<Virtualhost *:80>
        Servername www.linuxhelp2.com
        Documentroot /var/www/monstra
<directory /var/www/monstra>
Allowoverride all
Allow from all
</directory>
</Virtualhost>

Now restart the Apache service to view the changes.

[root@linuxhelp ~]# systemctl restart httpd

Open the browser and type domain name there. Give your all details here **This is the home page for the ** Now give credential to login in admin pannel This is the admini pannel for the monstra CMS

With this method the installation of monstra CMS on CentOS 8.1 comes to the end.

FAQ
Q
How to get the Github repository of the Monstra CMS?
A
For accessing the Github repository of the Monstra CMS, use the following link as given below
"https://github.com/monstra-cms/monstra"
Q
How to configure the host entry for Monstra CMS self-hosting?
A
To configure the host entry for Monstra CMS self-hosting is "/etc/hosts".
Q
What are the Pre-requirements in Monstra CMS?
A
The Pre-requirement for Monstra CMS is 1). Apache server 2). PHP and its related modules.
Q
What are the alternative tools available for the Monstra CMS?
A
The alternative tools for the Monstra CMS is
1) WordPress,
2) Drupal,
3) Ghost,
4) Backdrop
Q
How to get the Github repository of the Monstra CMS?
A
For access the Github repository of the Monstra CMS, use the following link as given below
"https://github.com/monstra-cms/monstra"