How to Install and Configure Landing CMS on CentOS 8.1
- 00:34 yum install httpd -y
- 01:12 systemctl start httpd
- 01:54 yum install mariadb mariadb-server
- 03:18 mysql_secure_installation
- 03:50 yum yum install php php-mbstring php-gd php-mysqlnd php-zip php-soap php-ldap php-curl php-mcrypt php-json
- 04:24 wget https://github.com/Elias-Black/Landing-CMS/archive/0.0.6.zip
- 04:52 chmod -R 755 /var/www/landing
- 05:28 chown -R apache:apache /var/www/landing
- 08:06 systemctl restart httpd
To install and configure Landing CMS on CentOS 8.1
Introduction:
Landing CMS is a simple and cross platform for management of landing pages. Landing pages are where a visitor lands, after they click on a link in an email or ads from Google, YouTube, Facebook or similar places on the web. Landing CMS doesn’t require database to work. This video will cover the installation and configuration of typesetter CMS on CentOS 8.1.
Prerequisite:
Apache
MariaDB
PHP and its module (php php-zip php-soap php-cli php-common php-gd php-mbstring php-Mcrypt php-MySQL php-XML)
Installation process: Check the installed version of OS by triggering the following command:
[root@linuxhelp ~]# cat /etc/centos-release
CentOS Linux release 8.1.1911 (Core)
[root@linuxhelp ~]# yum install httpd -y
Last metadata expiration check: 1:23:11 ago on Tuesday 13 October 2020 12:10:30 PM IST.
Dependencies resolved.
httpd x86_64 2.4.37-21.module_el8.2.0+494+1df74eae AppStream 1.7 M
Installing dependencies:
…..
….
apr-1.6.3-9.el8.x86_64 apr-util-1.6.1-6.el8.x86_64
httpd-filesystem-2.4.37-21.module_el8.2.0+494+1df74eae.noarch
httpd-tools-2.4.37-21.module_el8.2.0+494+1df74eae.x86_64 mod_http2-1.11.3-3.module_el8.2.0+486+c01050f0.1.x86_64 centos-logos-httpd-80.5-2.el8.noarch
Complete!
Now install MariaDB:
[root@linuxhelp user]# yum install mariadb mariadb-server
Last metadata expiration check: 1:34:08 ago on Tuesday 13 October 2020 12:10:30 PM IST.
Dependencies resolved.
….
(5/10): mariadb-gssapi-server-10.3.17-1.module_el8.1.0+257+48736ea6.x86_64.rpm 256 kB/s | 49 kB 00:00
(6/10): mariadb-10.3.17-1.module_el8.1.0+257+48736ea6.x86_64.rpm 244 kB/s | 6.1 MB 00:25
(7/10): mariadb-backup-10.3.17-1.module_el8.1.0+257+48736ea6.x86_64.rpm 220 kB/s | 6.0 MB 00:28
(8/10): perl-DBD-MySQL-4.046-3.module_el8.1.0+203+e45423dc.x86_64.rpm 235 kB/s | 156 kB 00:00
(9/10): mariadb-server-utils-10.3.17-1.module_el8.1.0+257+48736ea6.x86_64.rpm 293 kB/s | 1.6 MB 00:05
(10/10): mariadb-server-10.3.17-1.module_el8.1.0+257+48736ea6.x86_64.rpm 397 kB/s | 16 MB 00:41
….
…
mariadb-connector-c-3.0.7-1.el8.x86_64 mariadb-connector-c-config3.0.71.el8.noarch
mariadb-errmsg-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 perl-DBD-MySQL-4.046-3.module_el8.1.0+203+e45423dc.x86_64
Complete!
Enable the secure installation to secure MySQL:
[root@linuxhelp ~]# mysql_secure_installation
Enter current password for root (enter for none):
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
You already have a root password set, so you can safely answer 'n'.
Change the root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y
... Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] y
... Success!
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
Now, Install the PHP module and the required modules:
[root@linuxhelp yum install php php-zip php-soap php-cli php-common php-gd php-mbstring php-mcrypt php-mysqlnd php-xml
Last metadata expiration check: 0:00:14 ago on Tuesday 13 October 2020 03:10:48 PM IST.
Package php-mbstring-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-gd-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-mysqlnd-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-pecl-zip-1.15.3-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-soap-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-ldap-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-common-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Installing:
php x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 AppStream 1.5 M
Installing dependencies:
nginx-filesystem noarch 1:1.14.1-9.module_el8.0.0+184+e34fea82 AppStream 24 k
php-cli x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 AppStream 3.1 M
Installing weak dependencies:
php-fpm x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 AppStream 1.6 M
……………….
………………….
(4/4): php-cli-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64.rpm 234 kB/s | 3.1 MB 00:13
Preparing : 1/1
Installing : php-cli-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 ¼
……………..
……………
Verifying : php-fpm-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 4/4
Installed:
php-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 php-fpm-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch
php-cli-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64
Complete!
Then, Configure the info.php by using the following command:
[root@linuxhelp ~]# vim /var/www/html/info.php
<?
Phpinfo();
?>
Once the all step is completed restart the apache service
[root@linuxhelp ~]# systemctl restart httpd
Download Landing CMS by using the following command:
[root@linuxhelp ~]# wget https://github.com/Elias-Black/Landing-CMS/archive/0.0.6.zip
--2020-11-05 00:33:55-- https://github.com/Landing/Landing/archive/v5.1.zip
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘v5.1.zip’
[ <=> ] 4,409,398 1.06MB/s in 5.2s
2020-11-05 00:34:03 (821 KB/s) - ‘v5.1.zip’ saved [4409398]
Now unzip the downloaded master.zip file:
[root@linuxhelp ~]# unzip master.zip
Archive: master.zip
a6fddeffdcaace190baa41abb8854903a4b03fd6
creating: Landing-master/
creating: Landing -master/.easymin/
inflating: Landing -master/.easymin/ignore_prefixes
extracting: Landing -master/.easymin/ignore_types
inflating: Landing master/.easymin/noshrink_paths
inflating Landing -master/.editorconfig
inflating: Landing-master/.gitignore
inflating: Landing -master/.htaccess
inflating: Landing -master/.travis.yml
inflating: Landing -master/Addon.ini
inflating: Landing-master/README.md
……………….
……………………
inflating: Landing master/themes/index.html
inflating: Landing-master/web.config
Move Landing file to Apache root directory:
[root@linuxhelp ~]# mv landing-master /var/www/landing
Now change the ownership by triggering the below command:
[root@linuxhelp ~]# chown -R apache:apache /var/www/landing
Change permission for typesetter using the following command:
[root@linuxhelp ~]# chmod -R 755 /var/www/landing
Next step is very crucial. configure the Apache VirtualHost for Landing. Open the .conf file for Landing.
[root@linuxhelp ~]# vim /etc/httpd/conf.d/type.conf
<Virtualhost *:80>
Servername www.linuxhelp1.com
Documentroot /var/www/landing
<directory /var/www/landing>
Allowoverride all
Allow from all
</directory>
</Virtualhost>
Restart Apache service to reflex changes that have been made:
[root@linuxhelp ~]# systemctl restart httpd
Open your browser and type domain name there.
This is the welcome page of Landing CMS
Create new credentials
This is the dashboard of landing CMS to add filed
This is the content of landing CMS
With this method, installation of landing CMS on CentOS 8.1 comes to end.
Comments ( 0 )
No comments available