How to Install Lepton CMS on CentOS 7.5

Installation of Lepton CMS on CentOS 7.5

Lepton is an open source content management system used for creating and managing dynamic web content. It can be used either as Weblog, CMS or Web Portal and it is written PHP and uses MySQL database. It supports forums, image galleries, comments and many more. This tutorial covers the installation of Lepton CMS on Centos 7.5

Requirements for Lepton cms
Apache
MariaDB
PHP and its modules
php php-xml php-mysql  php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common php-mcrypt
Installation procedure

Before you begin, check the version of Centos you are using by running the following command.

[root@linuxhelp ~]# rpm -q centos-release
centos-release-7-5.1804.el7.centos.x86_64

Configure the MySQL database. Log into MySQL as a root user and make the necessary settings.

[root@linuxhelp ~]# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.60-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create database lepton;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> create user 'lepuser'@localhost identified by '123456';
Query OK, 0 rows affected (0.02 sec)

MariaDB [(none)]> grant all privileges on lepton.* to 'lepuser'@localhost;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> Ctrl-C -- exit!
Aborted

Once the database configuration is done, download the installation package of Lepton CMS package by using the wget command.

 [root@linuxhelp ~]# wget https://lepton-cms.org/media/download_gallery/LEPTON_stable_4.3.0.zip
--2019-05-14 17:07:10--  https://lepton-cms.org/media/download_gallery/LEPTON_stable_4.3.0.zip
Resolving lepton-cms.org (lepton-cms.org)... 94.102.208.155
Connecting to lepton-cms.org (lepton-cms.org)|94.102.208.155|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7427479 (7.1M) [application/zip]
Saving to: ‘LEPTON_stable_4.3.0.zip’
100%[==========================================================>] 7,427,479   1.08MB/s   in 7.3s   
2019-05-14 17:07:18 (995 KB/s) - ‘LEPTON_stable_4.3.0.zip’ saved [7427479/7427479]

Once the download is completed extract the downloaded package using unzip command

[root@linuxhelp ~]# unzip LEPTON_stable_4.3.0.zip
Archive:  LEPTON_stable_4.3.0.zip
   creating: LEPTON_stable_4.3.0/
  inflating: LEPTON_stable_4.3.0/CHANGELOG  
  inflating: LEPTON_stable_4.3.0/COPYING  
  inflating: LEPTON_stable_4.3.0/INSTALL  
  inflating: LEPTON_stable_4.3.0/LICENSE  
  inflating: LEPTON_stable_4.3.0/README.md  
   creating: LEPTON_stable_4.3.0/upload/
.
.
  inflating: LEPTON_stable_4.3.0/upload/templates/semantic/img/white-image.png  
  inflating: LEPTON_stable_4.3.0/upload/templates/semantic/index.php  
  inflating: LEPTON_stable_4.3.0/upload/templates/semantic/info.php  
   creating: LEPTON_stable_4.3.0/upload/templates/semantic/js/
  inflating: LEPTON_stable_4.3.0/upload/templates/semantic/js/index.php  
  inflating: LEPTON_stable_4.3.0/upload/templates/semantic/preview.jpg  
  inflating: LEPTON_stable_4.3.0/upload/temp/index.php

Move the Lepton CMS directory to apache root directory.

[root@linuxhelp ~]# mv LEPTON_stable_4.3.0 /var/www/lepton

And then, set the ownership and permission for Lepton CMS by running the following command.

[root@linuxhelp ~]# chown -R apache:apache /var/www/lepton

[root@linuxhelp ~]# chmod -R 755 /var/www/lepton

Configure the virtualhost for accessing the Lepton CMS in the following manner.

 [root@linuxhelp ~]# vim /etc/httpd/conf.d/lepton.conf
<Virtualhost *:80>
        Servername www.linuxhelp1.com
        Documentroot /var/www/lepton
<directory /var/www/lepton>
allowoverride all
allow from all
</directory>
</Virtualhost>

And then, restart the apache service by using the following command.

 [root@linuxhelp ~]# systemctl restart httpd

Switch to your browser and enter the domain name. Checking configuration of PHP requirement. Check out the file permissions of the Lepton CMS. Configure the Path setting, Language, and Time zone. Configure the Database Setup. Configure the Admin user account. After completing the installation, you can log in with the help of using Admin user credential. You will see the Admin control panel of Lepton CMS. Copy the two-factor authentication pin Enter the admin credentials to log in the Lepton CMS. Paste the two-factor authentication pin. This is the dashboard of Lepton CMS. With this, the method to install Lepton CMS on CentOS 7.5 comes to an end.

FAQ
Q
What are the requirements for Lepton cms?
A
These are the requirements for Lepton cms
Apache
Mysql
Php and its modules
Q
What are the php modules required for Lepton cms?
A
These are the php modules required for lepton cms

php php-xml php-mysql php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common php-dev libmcrypt-dev php-pear
Q
How to entry to the hosts file for Lepton cms?
A
use the following command to entry the host file
# vim /etc/hosts
Q
What PHP version is used in Lepton CMS?
A
you can make use of the latest php version for the best output.
Q
What is the use of Lepton cms?
A
Lepton is an open source content management system.which is used for creating and managing dynamic web content. It can be used either as Weblog, CMS or Web Portal and it is written PHP and uses MySQL database. It supports for forums, image galleries, comments and many more