How to Install LiteCart On Ubuntu 19.04
- 00:49 lsb_release -a
- 01:06 mysql -u root -p
- 02:29 wget https://github.com/litecart/litecart/archive/master.zip
- 02:40 unzip master.zip
- 02:47 mv litecart-master /var/www/lite
- 02:58 chown -R www-data.www-data /var/www/lite
- 03:11 chmod -R 755 /var/www/lite
- 03:23 vim /etc/apache2/sites-available/lite.conf
- 04:36 a2dissite 000-default.conf
- 04:48 a2ensite lite.conf
- 04:58 a2enmod rewrite
- 05:10 systemctl restart apache2
Installation of Lite Cart On Ubuntu 19.04
Requirements for Lite cart:
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
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 litedb;
Query OK, 1 row affected (0.06 sec)
mysql> create user 'liteuser'@localhost identified by 'Linuxc#45';
Query OK, 0 rows affected (0.14 sec)
mysql> grant all privileges on litedb.* to 'liteuser'@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.07 sec)
mysql> exit
Bye
Once the database configuration is done, download the Lite Cart Installation package by using the wget command.
root@linuxhelp:~# wget https://github.com/litecart/litecart/archive/master.zip
--2019-05-23 00:39:32-- https://github.com/litecart/litecart/archive/master.zip
Resolving github.com (github.com)... 13.234.210.38
Connecting to github.com (github.com)|13.234.210.38|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/litecart/litecart/zip/master [following]
--2019-05-23 00:39:33-- https://codeload.github.com/litecart/litecart/zip/master
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’
master.zip [ <=> ] 1.82M 638KB/s in 2.9s
2019-05-23 00:39:37 (638 KB/s) - ‘master.zip’ saved [1911752]
Once the download is completed extract the downloaded package using unzip command
root@linuxhelp:~# unzip master.zip
Archive: master.zip
5131ac5db85d96445b164c230a6d60fe26efee40
creating: litecart-master/
creating: litecart-master/.github/
inflating: litecart-master/.github/ISSUE_TEMPLATE.md
inflating: litecart-master/.gitignore
inflating: litecart-master/CREDITS.md
inflating: litecart-master/DEVELOPER.md
.
.
extracting: litecart-master/public_html/vqmod/mods.cache
inflating: litecart-master/public_html/vqmod/readme.txt
creating: litecart-master/public_html/vqmod/vqcache/
extracting: litecart-master/public_html/vqmod/vqcache/index.html
inflating: litecart-master/public_html/vqmod/vqmod.php
creating: litecart-master/public_html/vqmod/xml/
extracting: litecart-master/public_html/vqmod/xml/index.html
Move the Lite Cart directory to apache root directory.
root@linuxhelp:~# mv litecart-master /var/www/lite
Set the ownership and permission for Lite Cart by using the following command.
root@linuxhelp:~# chown -R www-data.www-data /var/www/lite
root@linuxhelp:~# chmod -R 755 /var/www/lite
Configure the virtualhost for accessing the Lite cart.
root@linuxhelp:~# vim /etc/apache2/sites-available/lite.conf
<Virtualhost *:80>
Servername www.linuxhelp1.com
documentroot /var/www/lite
<directory /var/www/lite>
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 Lite cart.
root@linuxhelp:~# a2ensite lite.conf
Enabling site lite.
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.
The installation page appears on your screen.
Configure the database setup
Configure the store details and admin credentials.
accept the license agreement.

The installation is now complete, click admin area to open the admin panel.
Enter your admin credentials and click ok.
Again, give your admin credentials and click login
This is the dashboard of Lite cart
With this, the method to install Lite Cart On Ubuntu 19.04 comes to an end.
Comments ( 0 )
No comments available