How to Install Lepton CMS on Linuxmint 19

Installation of Lepton CMS On Linuxmint 19

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 forums, image galleries, comments and many more. This Tutorial covers the installation of Lepton cms on Linuxmint 19

Requirements for Lepton cms:

Apache

Mysql

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-dev libmcrypt-dev php-pear

Installation procedure

Before you begin the installation process, check the Linuxmint version by using the following command.

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint 19 Tara
Release:	19
Codename:	tara

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 MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.26-0ubuntu0.18.04.1 (Ubuntu)
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database leptondb;
Query OK, 1 row affected (0.00 sec)
mysql> create user 'leptonuser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.07 sec)
mysql> grant all privileges on leptondb.* to 'leptonuser'@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye

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

root@linuxhelp:~# wget https://lepton-cms.org/media/download_gallery/LEPTON_stable_4.3.0.zip
--2019-07-13 11:28:44--  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’
LEPTON_stable_4.3.0.zip        100%[====================================================>]   7.08M  1.10MB/s    in 19s     
2019-07-13 11:29:04 (383 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/
   creating: LEPTON_stable_4.3.0/upload/account/
   creating: LEPTON_stable_4.3.0/upload/account/css/
  inflating: LEPTON_stable_4.3.0/upload/account/css/frontend.css  
.
.
  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

Set the ownership and permission for Lepton cms by using the following command.

root@linuxhelp:~# chown -R www-data.www-data /var/www/lepton
root@linuxhelp:~# chmod -R 755 /var/www/lepton

Configure the virtualhost for accessing the Lepton CMS.

root@linuxhelp:~# vim /etc/apache2/sites-available/lepton.conf
<Virtualhost *:80>
        Servername www.linuxhelp1.com
        Documentroot /var/www/lepton
<directory /var/www/lepton>
allowoverride all
allow from all
</directory>
</Virtualhost>

Disable the default site access.

root@linuxhelp:~# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2

Enable the site access for accessing the Lepton CMS.

root@linuxhelp:~# a2ensite lepton.conf
Enabling site lepton.
To activate the new configuration, you need to run:
systemctl reload apache2

Enable the rewrite module.

root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2

Restart the apache service by using the following command.

root@linuxhelp:~# systemctl restart apache2

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 Linuxmint 19 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 enter the host file

# vim /etc/hosts
Q
What PHP version should I use in Lepton CMS?
A
You can make use of the latest php version for the best output on Lepton CMS.
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 forums, image galleries, comments and many more