How to Install Monstra CMS on Ubuntu 20.4.1

To Install Monstra CMS on UBUNTU 20.4.1

introduction:

Monstra CMS is an open-source, modern, and lightweight CMS application that is easy to install, upgrade within a few steps. It contains various APIs for plugins, themes, and core development. This tutorial covers the installation of Monstra CMS on Ubuntu 20.4.1.

Installation Process:

Run lsb_release command to check the installed version of OS as follows.

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.1 LTS
Release:	20.04
Codename:	focal

Install Apache:

root@linuxhelp:~# apt install apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0
0 upgraded, 9 newly installed, 0 to remove and 197 not upgraded.
Need to get 1,819 kB of archives.
After this operation, 7,935 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu focal/main amd64 libapr1 amd64 1.6.5-1ubuntu1 [91.4 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu focal/main amd64 libaprutil1 amd64 1.6.1-4ubuntu2 [84.7 kB]
………………………………….
…………………………………

Once completed start Apache service by using the below command

root@linuxhelp:~# systemctl start apache2
Check the Apache status by using the below command
root@linuxhelp:~# systemctl status apache2
● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2020-11-21 19:40:17 IST; 1min 6s ago
       Docs: https://httpd.apache.org/docs/2.4/
   Main PID: 2813 (apache2)
      Tasks: 55 (limit: 2285)
     Memory: 5.4M
     CGroup: /system.slice/apache2.service
             ├─2813 /usr/sbin/apache2 -k start
             ├─2815 /usr/sbin/apache2 -k start
             └─2816 /usr/sbin/apache2 -k start

Nov 21 19:40:17 linuxhelp systemd[1]: Starting The Apache HTTP Server...
Nov 21 19:40:17 linuxhelp apachectl[2812]: AH00558: apache2: Could not reliably determine the server's fully qualified doma>
Nov 21 19:40:17 linuxhelp systemd[1]: Started The Apache HTTP Server.

Install PHP modules by using the below commands

root@linuxhelp:~# apt install php php-xml php-mysql php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libapache2-mod-php7.4 libc-client2007e libonig5 libzip5 mlock php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-gd
  php7.4-imap php7.4-json php7.4-ldap php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-soap php7.4-xml
  php7.4-zip
Suggested packages:
  php-pear uw-mailutils

Download the Monstra CMS package using the wget command

root@linuxhelp:~# wget https://github.com/monstra-cms/monstra/archive/dev.zip
--2020-11-21 19:51:47--  https://github.com/monstra-cms/monstra/archive/dev.zip
Resolving github.com (github.com)... 13.234.210.38
Connecting to github.com (github.com)|13.234.210.38|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/monstra-cms/monstra/zip/dev [following]
--2020-11-21 19:51:48--  https://codeload.github.com/monstra-cms/monstra/zip/dev
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: ‘dev.zip’
dev.zip                            [       <=>                                           ]   1.63M  1.09MB/s    in 1.5s    
2020-11-21 19:51:50 (1.09 MB/s) - ‘dev.zip’ saved [1706085]

Once the download is completed extract the download package using the unzip command.

root@linuxhelp:~# unzip dev.zip 
Archive:  dev.zip
1ff51860eaba83e8ab91d5deb1d6b157e0847455
   creating: monstra-dev/
  inflating: monstra-dev/.gitignore  
  inflating: monstra-dev/.htaccess   
  inflating: monstra-dev/CHANGELOG.md  
  inflating: monstra-dev/LICENSE.md  
  inflating: monstra-dev/README.md   
   creating: monstra-dev/admin/
  inflating: monstra-dev/admin/index.php  
   creating: monstra-dev/admin/themes/
…………………………………………………………………………

Move the monstra directory into the /var/www/ directory

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

Set the ownership and permission for Monstra CMS by using the following command.

root@linuxhelp:~# chown -R www-data.www-data /var/www/monstra
root@linuxhelp:~# chmod -R 755 /var/www/monstra

Configure the virtualhost for accessing the Monstra CMS.

root@linuxhelp:~# vim /etc/apache2/sites-available/monstra.conf

Disable the default site access.

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

Enable the site access for Monstra CMS.

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

Enable the rewrite module.

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

Restart the apache service by using the following command.

root@linuxhelp:~# systemctl restart apache2

Switch to your browser and enter your domain name. Check the pre-installation system for Monstra CMS. Enter the site details such as site name, site URL and admin credentials. The welcome page of Monstra CMS. Enter the required admin credentials and login to the site. The dashboard of the Monstra CMS appears on the screen.

with this the process of installation of monstra CMS comes to end on ubuntu 20.4.1.

FAQ
Q
Can I remove the "Powered by Monstra CMS" message in the front-end?
A
Yes, but we would like to ask you to show your support for the Monstra CMS project by showing a
"Powered by Monstra CMS" line that links to the project's website.
Q
How to configure the host entry for Monstra CMS self-hosting?
A
Add the following line into the "/etc/hosts" file as for Monstra CMS self-hosting.
Q
What are the Pre-requirements in Monstra cms?
A
pre-requirement for monster Cms is 1). Apache server 2). PHP and its related modules.
Q
What are the alternative tools available for the Monstra CMS?
A
The following tools are alternative for the Monstra CMS as given Below,
WordPress,
Drupal,
Ghost,
Backdrop
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"