How to Install Monstra CMS with Apache on AlmaLinux 8

Monstra CMS is a modern and lightweight Content Management System. It is easy to install, upgrade and use. In this article, we are going to learn how to install Monstra CMS on AlmaLinux 8. So, let’s get started.

Checkout the Monstra CMS Project Here.

Try this wiki on our VPS. Starting at just $5/month with 24x7 In-house customer support.

Pre-requisites

  • A system with AlmaLinux 8 installed and running.

  • root access to the system.

Once you're all set, we'll proceed with Monstra CMS installation and configuration.

Install Apache & PHP

Let's begin with installing Apache and PHP. Install using the below codes.

 yum install httpd httpd-tools php php-curl php-gd php-mbstring php-zip php-json -y

Enable services

 systemctl enable httpd

 systemctl start httpd

 systemctl status httpd

Enable Firewall

    firewall-cmd --permanent --add-service=http

    firewall-cmd --permanent --add-service=https

    firewall-cmd --reload

Install Let's Encrypt SSL Certificate

Next we will install Let's Encrypt SSL cert so we can have the domain running on HTTPS.
You can refer the following link for instructions on how to Install Let's Encrypt.

Download Monstra CMS

Download Monstra CMS from official website : Click here.

 cd /var/www/html/

 mkdir monstra

 cd /var/www/html/monstra

 wget <https://monstra.org/monstra-3.0.4.zip>

 unzip monstra-3.0.4.zip

 mv monstra-3.0.4 monstra

 rm monstra-3.0.4.zip

 cd monstra

Setting up File Permissions

Let's make the folders readable.

 chmod -R 755 /var/www/html/monstra/monstra

 chown -R apache:apache /var/www/html/monstra/monstra

 chcon -R -t httpd_sys_content_rw_t /var/www/html/monstra/monstra

Configuring Apache vHost

Create a new apache configuration file dev3.domainhere.info.conf for the domain with the following command:

 vi /etc/httpd/conf.d/dev3.domainhere.info.conf

Add the following codes:

 <VirtualHost *:80>

   ServerName dev3.domainhere.info
   ServerAlias dev3.domainhere.info
   DocumentRoot /var/www/html/monstra/monstra

   <Directory /var/www/html/monstra/monstra/>
       Options -Indexes +FollowSymLinks
       AllowOverride All
   </Directory>

   ErrorLog /var/log/httpd/dev3.domainhere.info-error.log
   CustomLog /var/log/httpd/dev3.domainhere.info-access.log combined

   </VirtualHost>

Change dev3.domainhere.info with Your Domain Name.

Now, press the Esc key, and type in :wq! and press the Enter key to save and exit the file.

Now, restart & check the apache with the following commands:

    systemctl restart httpd

    systemctl status httpd

Configuring Monstra CMS

Now open the URL from your browser, this will redirect you to configuring the final parts of the Monstra CMS installation.

https://dev3.domainhere.info

Replace the dev3.domainhere.info with the actual IP or domain configured on the server.

You can set your password on /admin.php page. Just enter your preferred username and password then enter :

Now you have successfully installed Monstra CMS with Apache on AlmaLinux 8.


CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!

1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month

Available Locations: LAX | MIA | ATL | FRA | AMS