How to Install Landing CMS with LAMP Stack on Rocky Linux 8

Landing CMS is a simple tool for management landing pages. It doesn't use any databases. All data is stored in a plain text file. In this article, we are going to learn how to install Landing CMS on Rocky Linux 8. So, let’s get started.

Checkout the Landing 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 Rocky Linux 8 installed and running.

  • root access to the system.

  • LAMP Stack installed and running, for this, you can refer to one of our guides on installing the LAMP Stack (Apache, MariaDB, and PHP).

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

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 Landing CMS

Download Landing CMS from official website : Click here.

cd /var/www/html/landing/

wget https://github.com/Elias-Black/Landing-CMS/archive/refs/heads/master.zip

unzip master.zip

mv Landing-CMS-master landing

rm master.zip

cd /var/www/html/landing/landing

Setting up File Permissions

Let's make the folders readable.

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

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

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

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/landing/landing

<Directory /var/www/html/landing/landing/>
    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 :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

Enable Firewall:

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

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

firewall-cmd --reload

Configuring Landing CMS

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

https://dev3.domainhere.info/

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

Input the Database details which was configured earlier. Follow the below steps:

Now you have successfully installed Landing CMS with LAMP Stack on Rocky Linux 8.