How to install Landing CMS on Rocky Linux 9.2
- 00:27 Cat /etc/os-release
- 00:43 yum install httpd*
- 01:20 systemctl enable httpd
- 01:30 systemctl start httpd
- 01:44 systemctl status httpd
- 02:01 yum install mariadb mariadb-server
- 02:58 systemctl enable mariadb.service
- 03:13 systemctl start mariadb.service
- 03:34 yum install php php-mbstring php-gd php-mysqlnd
- 04:21 wget https://github.com/Elias-Black/Landing-CMS/archive/0.0.6.zip
- 04:27 ll
- 04:40 unzip 0.0.6.zip
- 04:53 mv Landing-CMS-0.0.6 /var/www/html/landing
- 05:14 chown -R apache:apache /var/www/html/landing/
- 05:35 chmod -R 755 /var/www/html/landing/
- 05:55 vim /etc/httpd/conf.d/landing.conf
- 06:39 vim /etc/hosts
- 07:23 systemctl restart httpd
- 07:40 setenforce 0
- 08:01 www.linuxhelp1.com
To Install Landing CMS On Rocky Linux 9.2
Introduction:
A landing page CMS is a content management system that is specifically designed for creating and managing landing pages. Landing pages are single-page websites that are designed to convert visitors into leads or customers.
Procedure
Step 1: Check the OS version by using the below command
[root@Linuxhelp ~]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="9.2 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.2"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.2 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.2"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.2"
Step 2: Install Apache Web Server by using the below command
[root@Linuxhelp ~]# yum install httpd*
Rocky Linux 9 - BaseOS 5.4 kB/s | 4.1 kB 00:00
Rocky Linux 9 - AppStream 6.2 kB/s | 4.5 kB 00:00
Rocky Linux 9 - Extras 4.0 kB/s | 2.9 kB 00:00
Dependencies resolved.
===================================================================================================================
Package Architecture Version Repository Size
===================================================================================================================
Installing:
httpd x86_64 2.4.53-11.el9_2.5 appstream 47 k
httpd-core x86_64 2.4.53-11.el9_2.5 appstream 1.4 M
httpd-manual noarch 2.4.53-11.el9_2.5 appstream 2.2 M
httpd-tools x86_64 2.4.53-11.el9_2.5 appstream 81 k
Installing dependencies:
apr x86_64 1.7.0-11.el9 appstream 123 k
apr-devel x86_64 1.7.0-11.el9 appstream 219 k
apr-util-devel x86_64 1.6.1-20.el9_2.1 appstream 69 k
Transaction Summary
===================================================================================================================
Install 20 Packages
Total download size: 5.6 M
Installed size: 20 M
Is this ok [y/N]: y
Downloading Packages:
(1/20): rocky-logos-httpd-90.14-1.el9.noarch.rpm 67 kB/s | 24 kB 00:00
(2/20): cyrus-sasl-2.1.27-21.el9.x86_64.rpm 180 kB/s | 71 kB 00:00
(3/20): expat-devel-2.5.0-1.el9.x86_64.rpm 132 kB/s | 53 kB 00:00
(4/20): mod_lua-2.4.53-11.el9_2.5.x86_64.rpm 573 kB/s | 61 kB 00:00
(5/20): httpd-tools-2.4.53-11.el9_2.5.x86_64.rpm 809 kB/s | 81 kB 00:00
-------------------------------------------------------------------------------------------------------------------
Total 2.1 MB/s | 5.6 MB 00:02
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : apr-1.7.0-11.el9.x86_64 1/20
Installing : apr-util-bdb-1.6.1-20.el9_2.1.x86_64 2/20
Installing : apr-util-1.6.1-20.el9_2.1.x86_64 3/20
Installing : apr-util-openssl-1.6.1-20.el9_2.1.x86_64 4/20
Installing : apr-devel-1.7.0-11.el9.x86_64 5/20
Installed:
apr-1.7.0-11.el9.x86_64 apr-devel-1.7.0-11.el9.x86_64
apr-util-1.6.1-20.el9_2.1.x86_64 apr-util-bdb-1.6.1-20.el9_2.1.x86_64
apr-util-devel-1.6.1-20.el9_2.1.x86_64 apr-util-openssl-1.6.1-20.el9_2.1.x86_64
mod_http2-1.15.19-4.el9_2.4.x86_64 mod_lua-2.4.53-11.el9_2.5.x86_64
openldap-devel-2.6.2-3.el9.x86_64 rocky-logos-httpd-90.14-1.el9.noarch
Complete!
Step 3: Enable and Start the Apache web server by using the below command
[root@Linuxhelp ~]# systemctl enable httpd
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
[root@Linuxhelp ~]# systemctl start httpd
Step 4: Check the status of the Apache web server by using the below command
[root@Linuxhelp ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; preset: disabled)
Active: active (running) since Fri 2023-11-10 04:58:31 IST; 25s ago
Docs: man:httpd.service(8)
Main PID: 83388 (httpd)
Status: "Total requests: 0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec: 0 B/sec"
Tasks: 213 (limit: 22877)
Memory: 29.4M
CPU: 242ms
CGroup: /system.slice/httpd.service
├─83388 /usr/sbin/httpd -DFOREGROUND
├─83389 /usr/sbin/httpd -DFOREGROUND
├─83393 /usr/sbin/httpd -DFOREGROUND
├─83395 /usr/sbin/httpd -DFOREGROUND
└─83396 /usr/sbin/httpd -DFOREGROUND
Nov 10 04:58:31 Linuxhelp systemd[1]: Starting The Apache HTTP Server...
Nov 10 04:58:31 Linuxhelp httpd[83388]: AH00558: httpd: Could not reliably determine the server's fully qualified >
Nov 10 04:58:31 Linuxhelp systemd[1]: Started The Apache HTTP Server.
Nov 10 04:58:31 Linuxhelp httpd[83388]: Server configured, listening on: port 80
Step 5: Install Mariadb by using the below command
[root@Linuxhelp ~]# yum install mariadb mariadb-server
Last metadata expiration check: 0:02:04 ago on Friday 10 November 2023 04:57:35 AM.
Dependencies resolved.
===================================================================================================================
Package Architecture Version Repository Size
===================================================================================================================
Installing:
mariadb x86_64 3:10.5.22-1.el9_2 appstream 1.6 M
mariadb-server x86_64 3:10.5.22-1.el9_2 appstream 9.6 M
Installing dependencies:
mariadb-common x86_64 3:10.5.22-1.el9_2 appstream 27 k
mariadb-connector-c x86_64 3.2.6-1.el9_0 appstream 195 k
mysql-selinux noarch 1.0.5-1.el9_0 appstream 35 k
perl-DBD-MariaDB x86_64 1.21-16.el9_0 appstream 151 k
perl-File-Copy noarch 2.34-480.el9 appstream 20 k
Transaction Summary
===================================================================================================================
Install 13 Packages
Total download size: 18 M
Installed size: 109 M
Is this ok [y/N]: y
Downloading Packages:
(1/13): mysql-selinux-1.0.5-1.el9_0.noarch.rpm 128 kB/s | 35 kB 00:00
(2/13): perl-Sys-Hostname-1.23-480.el9.x86_64.rpm 295 kB/s | 17 kB 00:00
(3/13): perl-File-Copy-2.34-480.el9.noarch.rpm 354 kB/s | 20 kB 00:00
-------------------------------------------------------------------------------------------------------------------
Total 8.4 MB/s | 18 MB 00:02
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : mariadb-connector-c-config-3.2.6-1.el9_0.noarch 1/13
Installing : mariadb-common-3:10.5.22-1.el9_2.x86_64 2/13
libsemanage.semanage_direct_install_info: Overriding mysql module at lower priority 100 with module at priority 200.
Installing : mariadb-server-utils-3:10.5.22-1.el9_2.x86_64 9/13
Installing : mariadb-gssapi-server-3:10.5.22-1.el9_2.x86_64 10/13
Running scriptlet: mariadb-server-3:10.5.22-1.el9_2.x86_64 13/13
Installing : mariadb-server-3:10.5.22-1.el9_2.x86_64 13/13
Running scriptlet: mariadb-server-3:10.5.22-1.el9_2.x86_64 13/13
Running scriptlet: mysql-selinux-1.0.5-1.el9_0.noarch 13/13
Running scriptlet: mariadb-server-3:10.5.22-1.el9_2.x86_64 13/13
Verifying : mysql-selinux-1.0.5-1.el9_0.noarch 1/13
Verifying : mariadb-connector-c-3.2.6-1.el9_0.x86_64 2/13
Installed:
mariadb-3:10.5.22-1.el9_2.x86_64 mariadb-backup-3:10.5.22-1.el9_2.x86_64
mariadb-common-3:10.5.22-1.el9_2.x86_64 mariadb-connector-c-3.2.6-1.el9_0.x86_64
perl-DBD-MariaDB-1.21-16.el9_0.x86_64 perl-File-Copy-2.34-480.el9.noarch
perl-Sys-Hostname-1.23-480.el9.x86_64
Complete!
Step 6: Enable and Start the Maraidb service by using the below command
[root@Linuxhelp ~]# systemctl enable mariadb.service
Created symlink /etc/systemd/system/mysql.service → /usr/lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/mysqld.service → /usr/lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /usr/lib/systemd/system/mariadb.service.
[root@Linuxhelp ~]# systemctl start mariadb.service
Step 7: Install PHP and PHP modules by using the below command
[root@Linuxhelp ~]# yum install php php-mbstring php-gd php-mysqlnd
Last metadata expiration check: 0:04:49 ago on Friday 10 November 2023 04:57:35 AM.
Dependencies resolved.
===================================================================================================================
Package Architecture Version Repository Size
===================================================================================================================
Installing:
php x86_64 8.0.30-1.el9_2 appstream 7.7 k
php-gd x86_64 8.0.30-1.el9_2 appstream 39 k
php-mbstring x86_64 8.0.30-1.el9_2 appstream 468 k
php-mysqlnd x86_64 8.0.30-1.el9_2 appstream 148 k
Installing dependencies:
nginx-filesystem noarch 1:1.20.1-14.el9_2.1 appstream 8.5 k
php-common x86_64 8.0.30-1.el9_2 appstream 665 k
php-pdo x86_64 8.0.30-1.el9_2 appstream 81 k
Installing weak dependencies:
php-cli x86_64 8.0.30-1.el9_2 appstream 3.1 M
php-fpm x86_64 8.0.30-1.el9_2 appstream 1.6 M
php-opcache x86_64 8.0.30-1.el9_2 appstream 509 k
php-xml x86_64 8.0.30-1.el9_2 appstream 131 k
Transaction Summary
===================================================================================================================
Install 11 Packages
Total download size: 6.7 M
Installed size: 36 M
Is this ok [y/N]: y
Downloading Packages:
(1/11): nginx-filesystem-1.20.1-14.el9_2.1.noarch.rpm 37 kB/s | 8.5 kB 00:00
(2/11): php-xml-8.0.30-1.el9_2.x86_64.rpm 384 kB/s | 131 kB 00:00
(3/11): php-mysqlnd-8.0.30-1.el9_2.x86_64.rpm 1.3 MB/s | 148 kB 00:00
(4/11): php-opcache-8.0.30-1.el9_2.x86_64.rpm 1.8 MB/s | 509 kB 00:00
(5/11): php-pdo-8.0.30-1.el9_2.x86_64.rpm 159 kB/s | 81 kB 00:00
-------------------------------------------------------------------------------------------------------------------
Total 3.9 MB/s | 6.7 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : php-common-8.0.30-1.el9_2.x86_64 1/11
Installing : php-pdo-8.0.30-1.el9_2.x86_64 2/11
Installing : php-xml-8.0.30-1.el9_2.x86_64 3/11
Installed:
nginx-filesystem-1:1.20.1-14.el9_2.1.noarch php-8.0.30-1.el9_2.x86_64 php-cli-8.0.30-1.el9_2.x86_64
php-pdo-8.0.30-1.el9_2.x86_64 php-xml-8.0.30-1.el9_2.x86_64
Complete!
Step 8: Download Landing CMS by using the below command
[root@Linuxhelp ~]# wget https://github.com/Elias-Black/Landing-CMS/archive/0.0.6.zip
--2023-11-10 05:10:06-- https://github.com/Elias-Black/Landing-CMS/archive/0.0.6.zip
Resolving github.com (github.com)... 20.207.73.82
Connecting to github.com (github.com)|20.207.73.82|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/Elias-Black/Landing-CMS/zip/refs/tags/0.0.6 [following]
--2023-11-10 05:10:07-- https://codeload.github.com/Elias-Black/Landing-CMS/zip/refs/tags/0.0.6
Resolving codeload.github.com (codeload.github.com)... 20.207.73.88
Connecting to codeload.github.com (codeload.github.com)|20.207.73.88|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘0.0.6.zip’
0.0.6.zip [ <=> ] 2.25M 8.48MB/s in 0.3s
2023-11-10 05:10:08 (8.48 MB/s) - ‘0.0.6.zip’ saved [2359509]
Step 9: Long list the files by using the following command
[root@Linuxhelp ~]# ll
total 2312
-rw-r--r--. 1 root root 2359509 Nov 10 05:10 0.0.6.zip
-rw-------. 1 root root 1039 Aug 13 22:24 anaconda-ks.cfg
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Desktop
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Documents
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Downloads
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Music
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Pictures
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Public
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Templates
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Videos
Step 10: Unzip the Downloaded zip file by using the below command
[root@Linuxhelp ~]# unzip 0.0.6.zip
Archive: 0.0.6.zip
61d4ba5ff68cfe80e7f5a19d7d0e42d6c242acc0
creating: Landing-CMS-0.0.6/
inflating: Landing-CMS-0.0.6/LICENSE
inflating: Landing-CMS-0.0.6/README.md
creating: Landing-CMS-0.0.6/assets/
creating: Landing-CMS-0.0.6/assets/_cms/
creating: Landing-CMS-0.0.6/assets/_cms/css/
inflating: Landing-CMS-0.0.6/assets/_cms/css/main.css
inflating: Landing-CMS-0.0.6/assets/_cms/css/no_js.css
creating: Landing-CMS-0.0.6/assets/_cms/img/
extracting: Landing-CMS-0.0.6/assets/_cms/img/50-black.png
creating: Landing-CMS-0.0.6/modules/
inflating: Landing-CMS-0.0.6/modules/rand_num.php
inflating: Landing-CMS-0.0.6/robots.txt
Step 11: Move Landing file to Apache root directory by using the below command
[root@Linuxhelp ~]# mv Landing-CMS-0.0.6 /var/www/html/landing
Step 12: Now change the ownership by using the below command
[root@Linuxhelp ~]# chown -R apache:apache /var/www/html/landing/
Step 13: Change permission type by using the below command
[root@Linuxhelp ~]# chmod -R 755 /var/www/html/landing/
Step 14: Configure the Apache Virtual Host for Landing CMS by using the below command
[root@Linuxhelp ~]# vim /etc/httpd/conf.d/landing.conf
Insert the following lines.
<virtualhost *:80>
servername www.linuxhelp1.com
Documentroot /var/www/html/landing
<directory /var/www/html/landing>
</directory>
</virtualhost>
Step 15: Open the host entry configuration file and enter the host IP and domain by using the below command
[root@Linuxhelp ~]# vim /etc/hosts
Insert the following Line
127.0.0.1 www.linuxhelp1.com
Step 16: Restart Apache service by using the below command
[root@Linuxhelp ~]# systemctl restart httpd
Step 17 : Temporarily disable SELinux by using the below command
[root@Linuxhelp ~]# setenforce 0
Step 18: Open the browser and ping domain name as shown in the below image

Stpe 19: Create new credentials as shown in the below image

Stpe 20: This is the dashboard of landing CMS

Step 21: This is the content of landing CMS

Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to install Landing CMS on Rocky Linux 9.2. Your feedback is much welcome.
Comments ( 0 )
No comments available