How to Install Lepton CMS on Ubuntu 19.04
- 00:40 lsb_release -a
- 00:54 mysql -u root -p
- 02:08 wget https://lepton-cms.org/media/download_gallery/LEPTON_stable_4.3.0.zip
- 02:27 unzip LEPTON_stable_4.3.0.zip
- 02:37 mv LEPTON_stable_4.3.0 /var/www/lepton
- 02:51 chown -R www-data.www-data /var/www/lepton
- 03:08 chmod -R 755 /var/www/lepton
- 03:24 vim /etc/apache2/sites-available/lepton.conf
- 04:44 a2dissite 000-default.conf
- 04:59 a2ensite lepton.conf
- 05:12 a2enmod rewrite
- 05:21 systemctl restart apache2
Installation of Lepton cms on Ubuntu 19.04
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 Ubuntu 19.04
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 Ubuntu version by using the following command.
root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
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.19.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 lepton;
Query OK, 1 row affected (0.02 sec)
mysql> create user 'lepuser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.07 sec)
mysql> grant all privileges on lepton.* to 'lepuser'@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.08 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-05-09 12:16:16-- 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.05MB/s in 7.7s
2019-05-09 12:16:25 (939 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
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 Ubuntu 19.04 comes to an end.
Comments ( 0 )
No comments available