How to install Lepton CMS on Ubuntu 18.04
To install Lepton CMS on Ubuntu 18.04
Lepton is an open source tool 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 using PHP. It supports things such as forums, image galleries, comments, etc. as it has the necessary plug-ins.
Prerequisites
To install LAMP(Apache, MariaDB, php7)
In MariaDB (create database and user and give privileges to that user )
Php installation with required following modules
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd php7.0-mbstring php7.0 php7.0-common php7.0-xmlrpc php7.0-soap
php7.0-xml php7.0-intl php7.0-cli php7.0-ldap php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl
Download a Lepton package using the following URL https://lepton-cms.org/modules/download_gallery/dlc.php?file=165& id=1525168125
Switch to the download directory,
root@linuxhelp1: /home/user1# cd Downloads/
The download package is a zip file, so we need to unzip the package as follows
root@www:/home/user1/Downloads# unzip LEPTON_stable_3.0.3.zip
Archive: LEPTON_stable_3.0.3.zip
creating: LEPTON_stable_3.0.3/
inflating: LEPTON_stable_3.0.3/CHANGELOG
inflating: LEPTON_stable_3.0.3/COPYING
inflating: LEPTON_stable_3.0.3/INSTALL
inflating: LEPTON_stable_3.0.3/LICENSE
.
.
inflating: LEPTON_stable_3.0.3/upload/templates/semantic/index.php
inflating: LEPTON_stable_3.0.3/upload/templates/semantic/info.php
creating: LEPTON_stable_3.0.3/upload/templates/semantic/js/
inflating: LEPTON_stable_3.0.3/upload/templates/semantic/js/cookieconsent.js
inflating: LEPTON_stable_3.0.3/upload/templates/semantic/js/index.php
inflating: LEPTON_stable_3.0.3/upload/templates/semantic/preview.jpg
inflating: LEPTON_stable_3.0.3/upload/temp/index.php
Move the extracted file into the HTML location
root@www:/home/user1/Downloads# mv LEPTON_stable_3.0.3 /var/www/
And then switch to the following directory
root@www:/home/user1/Downloads# cd /var/www/
Change the ownership and permission of the file as follows
root@linuxhelp1:/var/www# chown -R www-data.www-data LEPTON_stable_3.0.3/
root@linuxhelp1:/var/www# chmod -R 775 LEPTON_stable_3.0.3
Create a new virtual host configuration for accessing the Lepton
root@linuxhelp1:/var/www# vim /etc/apache2/sites-available/lepton.conf
< VirtualHost *:80>
ServerName www.linuxhelp1.com
DocumentRoot /var/www/LEPTON_stable_3.0.3/upload/
< Directory /var/www/LEPTON_stable_3.0.3/upload/>
AllowOverride All
allow from all
< /Directory>
< /VirtualHost>
Enable the site access
root@linuxhelp1:/var/www# a2ensite lepton.conf
Enabling site lepton.
To activate the new configuration, you need to run:
systemctl reload apache2
Disable the default site access
root@linuxhelp1:/var/www# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable the rewrite module
root@linuxhelp1:/var/www# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
Restart the apache2 service
root@linuxhelp1:/var/www# systemctl restart apache2
Now you can proceed the further installation and configuration from the browser by navigating to the following URL of http://local IP (or) domain name

Checking configuration of PHP requirement

Check out the file permissions of the Lepton CMS

Configure the Path setting, Language, and Timezone as follows

Configure the Database setup

Configure the Admin user account and Site information

After completing the installation, you can login with help of using Admin user credential

You will see the Admin control panel of Lepton CMS as shown below
After the successful login, you get access to the admin dashboard

with this, the method to install Lepton CMS on Ubuntu 18.04 comes to an end.
Comments ( 0 )
No comments available