How to install landing cms using lamp in centos 7.5
- 0:33 rpm -q centos-release
- 0:45 yum install httpd
- 1:29 yum install mariadb-server mariadb
- 2:21 mysql_secure_installation
- 2:57 yum install php php-mysql php-curl php-json php-cgi php-mcrypt php-xmlrpc php-gd php-mbstring php-common
- 3:14 systemctl restart httpd
- 3:28 wget https://github.com/Elias-Black/Landing-CMS/archive/0.0.6.zip
- 3:45 unzip 0.0.6.zip
- 4:01 mv Landing-CMS-0.0.6 /var/www/landing
- 4:19 chown -R apache:apache /var/www/landing
- 4:32 chmod -R 755 /var/www/landing
- 4:54 vim /etc/httpd/conf.d/landing.conf
- 5:39 vim /etc/hosts
- 6:04 systemctl restart httpd
Installation of Landing cms using lamp in centos 7.5
Landing CMS is a simple and cross-platform for management landing pages. It doesn't use any databases. This tutorial covers the installation procedure of landing CMS on Centos 7.5.
Installation Procedure
check the centos version by using the following command
[root@linuxhelp ~]# rpm -q centos-release
centos-release-7-5.1804.el7.centos.x86_64
Install the apache server by using the following command
[root@linuxhelp ~]# yum install httpd
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* epel: mirror2.totbb.net
* extras: mirrors.nhanhoa.com
* remi-php70: mirror.veriteknik.net.tr
* remi-safe: mirror.veriteknik.net.tr
* updates: mirrors.123host.vn
Resolving Dependencies
--> Running transaction check
.
.
.
Installed:
httpd.x86_64 0:2.4.6-88.el7.centos
Dependency Installed:
apr.x86_64 0:1.4.8-3.el7_4.1 apr-util.x86_64 0:1.5.2-6.el7
httpd-tools.x86_64 0:2.4.6-88.el7.centos mailcap.noarch 0:2.1.41-2.el7
Complete!
Once the above process Is completed we need to start the service
[root@linuxhelp ~]# systemctl start httpd
Enable the apache service by using the following command
root@linuxhelp ~]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
Install mariadb and mariadb-server
[root@linuxhelp ~]# yum install mariadb-server mariadb
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.nbrc.ac.in
* epel: mirror.horizon.vn
* extras: mirror.nbrc.ac.in
* remi-php70: repo1.ash.innoscale.net
* remi-safe: repo1.ash.innoscale.net
* updates: mirror.nbrc.ac.in
Resolving Dependencies
--> Running transaction check
.
.
.
-libs-5.5.56-2.el7.x86_64 12/12
Installed:
mariadb.x86_64 1:5.5.60-1.el7_5 mariadb-server.x86_64 1:5.5.60-1.el7_5
Dependency Installed:
perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7
perl-DBD-MySQL.x86_64 0:4.023-6.el7 perl-DBI.x86_64 0:1.627-4.el7
perl-Data-Dumper.x86_64 0:2.145-3.el7 perl-IO-Compress.noarch 0:2.061-2.el7
perl-Net-Daemon.noarch 0:0.48-5.el7 perl-PlRPC.noarch 0:0.2020-14.el7
Dependency Updated:
mariadb-libs.x86_64 1:5.5.60-1.el7_5
Complete!
Once the above process Is completed we need to start the service
[root@linuxhelp ~]# systemctl start mariadb
Enable the mariadb service by using the following command
[root@linuxhelp ~]# systemctl enable mariadb
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
Once the above step is completed secure the root password for mysql database by using the following command
[root@linuxhelp ~]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
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.
Set 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!
Once it completed we need to install php7.0
[root@linuxhelp ~]# yum install php php-mysql php-curl php-json php-cgi php-mcrypt php-xmlrpc php-gd php-mbstring php-common
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.xeonbd.com
* epel: mirror2.totbb.net
* extras: mirrors.nhanhoa.com
* remi-php70: mirrors.thzhost.com
* remi-safe: mirrors.thzhost.com
* updates: mirrors.123host.vn
Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-7.0.33-7.el7.remi.x86_64 instead
Resolving Dependencies
--> Running transaction check
.
.
.
Installed:
php.x86_64 0:7.0.33-7.el7.remi php-cli.x86_64 0:7.0.33-7.el7.remi
php-common.x86_64 0:7.0.33-7.el7.remi php-gd.x86_64 0:7.0.33-7.el7.remi
php-json.x86_64 0:7.0.33-7.el7.remi php-mbstring.x86_64 0:7.0.33-7.el7.remi
php-mcrypt.x86_64 0:7.0.33-7.el7.remi php-mysqlnd.x86_64 0:7.0.33-7.el7.remi
php-xmlrpc.x86_64 0:7.0.33-7.el7.remi
Dependency Installed:
gd-last.x86_64 0:2.2.5-8.el7.remi libmcrypt.x86_64 0:2.5.8-13.el7
libwebp7.x86_64 0:1.0.2-1.el7.remi php-pdo.x86_64 0:7.0.33-7.el7.remi
php-xml.x86_64 0:7.0.33-7.el7.remi
Complete!
Restart the apache service by using the following command
[root@linuxhelp ~]# systemctl restart httpd
download Landing installation package using wget
[root@linuxhelp ~]# wget https://github.com/Elias-Black/Landing-CMS/archive/0.0.6.zip
--2019-04-06 16:21:25-- https://github.com/Elias-Black/Landing-CMS/archive/0.0.6.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
Location: https://codeload.github.com/Elias-Black/Landing-CMS/zip/0.0.6 [following]
--2019-04-06 16:21:26-- https://codeload.github.com/Elias-Black/Landing-CMS/zip/0.0.6
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120, 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘0.0.6.zip’
[ <=> ] 2,359,509 415KB/s in 6.5s
2019-04-06 16:21:34 (353 KB/s) - ‘0.0.6.zip’ saved [2359509]
After downloading the package extract the download package using unzip 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/
.
.
.
.
Move the extracted directory on Apache root directory and list the files in the directory.
creating: Landing-CMS-0.0.6/cms/copy-field/
inflating: Landing-CMS-0.0.6/cms/copy-field/index.php
creating: Landing-CMS-0.0.6/cms/edit-field/
inflating: Landing-CMS-0.0.6/cms/edit-field/index.php
inflating: Landing-CMS-0.0.6/cms/index.php
creating: Landing-CMS-0.0.6/cms/login/
inflating: Landing-CMS-0.0.6/cms/login/index.php
creating: Landing-CMS-0.0.6/cms/password/
inflating: Landing-CMS-0.0.6/cms/password/index.php
inflating: Landing-CMS-0.0.6/index.php
inflating: Landing-CMS-0.0.6/install.php
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
Navigate to the Apache document root directory.
[root@linuxhelp ~]# mv Landing-CMS-0.0.6 /var/www/landing
Set the ownership and permission for the Landing cms
[root@linuxhelp ~]# chown -R apache:apache /var/www/landing
[root@linuxhelp ~]# chmod -R 755 /var/www/landing
Open the conf.d configuration file to configure the virtual host
[root@linuxhelp ~]# vim /etc/httpd/conf.d/landing.conf
<Virtualhost *:80>
Servername www.linuxhelp1.com
Documentroot /var/www/landing
</Virtualhost>
Configure the host entry by using the following command
[root@linuxhelp ~]# vim /etc/hosts
<ip address> <domain name>
once the above step is completed restart apache service
[root@linuxhelp ~]# systemctl restart httpd
Now you can proceed the further installation and configuration from the browser by navigating to the following domain name
Welcome page of landing cms. click ‘Go to CMS’.
Give password for landing cms.
You will see the landing cms dashboard
With this, the method to install Landing cms on centos 7.5 comes to an end
Comments ( 0 )
No comments available