If you’re looking for a simple tool to manage your landing pages without the need for databases, Landing CMS is the perfect solution. In this guide, we will walk you through the step-by-step process of installing Landing CMS on AlmaLinux 8. By the end of this tutorial, you’ll have a fully functional Landing CMS system up and running on your server.
Before we begin, let’s make sure we have everything we need:
Prerequisites
- A system with AlmaLinux 8 installed and running.
- Root access to the system.
- LAMP Stack (Apache, MariaDB, and PHP) installed and running.
If you haven’t installed the LAMP Stack yet, you can refer to our comprehensive guide on How to Install LAMP Stack on AlmaLinux 8.
Now that we have all the prerequisites in place, let’s proceed with the installation and configuration of Landing CMS.
Step 1: Install Let’s Encrypt SSL Certificate
To ensure secure communication with your Landing CMS, we highly recommend installing a Let’s Encrypt SSL certificate. This will enable your domain to run on HTTPS, providing encryption and trust to your users.
You can follow our detailed guide on How to Install Let’s Encrypt SSL Certificate to complete this step.
Step 2: Download Landing CMS
First, we need to download the latest version of Landing CMS from the official website. You can find the download link [here](link to the official website).
Open your terminal and navigate to the desired installation directory:
cd /var/www/html/landing
Next, use the wget
command to download the Landing CMS ZIP file:
wget https://github.com/Elias-Black/Landing-CMS/archive/refs/heads/master.zip
Once the download is complete, unzip the ZIP file and rename the extracted folder:
unzip master.zip mv Landing-CMS-master landing rm master.zip
Now, navigate into the landing
directory:
cd /var/www/html/landing/landing
Step 3: Setting up File Permissions
To ensure that the necessary files and folders are readable by the web server, we need to set the correct file permissions. Run the following commands:
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
These commands will make the necessary folders readable by the web server and ensure that the correct SELinux context is set.
Step 4: Configuring Apache vHost
Next, we need to configure an Apache virtual host for our Landing CMS. Create a new Apache configuration file using the following command:
vi /etc/httpd/conf.d/dev3.domainhere.info.conf
Replace dev3.domainhere.info
with your actual domain name.
In the newly created file, add the following configuration:
<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>
Save and exit the file by pressing Esc
, followed by :wq!
, and then press Enter
.
Now, restart Apache to apply the changes:
systemctl restart httpd
You can verify the status of Apache using the following command:
systemctl status httpd
Step 5: Enable Firewall
To allow HTTP and HTTPS traffic to your Landing CMS, we need to enable the necessary firewall rules. Run the following commands:
firewall-cmd --permanent --add-service=http firewall-cmd --permanent --add-service=https firewall-cmd --reload
This will ensure that your Landing CMS is accessible over the standard HTTP and HTTPS ports.
Step 6: Configuring Landing CMS
With all the necessary setup steps completed, it’s time to configure your Landing CMS. Open your browser and enter the following URL:
https://dev3.domainhere.info/
Replace dev3.domainhere.info
with your actual IP address or domain name configured on the server.
Follow the on-screen instructions to provide the required database details. Make sure to use the database details you configured earlier during the LAMP Stack setup.
Congratulations! You have successfully installed Landing CMS with LAMP Stack on AlmaLinux 8. You can now start creating and managing your landing pages with ease.
At Shape.host, we offer reliable and scalable cloud hosting solutions for businesses of all sizes. Our Linux SSD VPS plans provide high-performance infrastructure for your websites and applications. With our 24/7 customer support and competitive pricing, you can trust Shape.host to meet your hosting needs. Get started today and experience the power of our cloud hosting services.