How to install Litecart V2.1.2 on Linuxmint-18.03

To install Lite cart V2.1.2 on Linuxmint-18.03
LiteCart is a free and open source e-commerce platform which is developed in PHP and uses a MySQL database.


Pre-requirements
Install LAMP (Apache, php7.2, mariadb-server)
In MariaDB (create database, user and give privileges to the user)

FOR PHP INSTALLATION

add-apt-repository ppa:ondrej/php 
apt-get update 
apt install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-intl php7.2-mysql php7.2-cli php7.2-mcrypt php7.2-ldap php7.2-zip php7.2-curl

Download the Lite cart package from the browser using the following link https://www.litecart.net/download

linuxhelp ~ # cd /home/user/Downloads/
linuxhelp Downloads # ls
litecart-2.1.2.zip

After downloading extract the downloaded package as follows

linuxhelp Downloads # unzip litecart-2.1.2.zip -d litecart
Archive:  litecart-2.1.2.zip
52b11258f6ad5b320ebfdc641831ba87ad504bd9
  inflating: litecart/CREDITS.md     
  inflating: litecart/LICENSE.md     
  inflating: litecart/README.md      
  inflating: litecart/STANDARD.md    
  inflating: litecart/UPGRADE.md     
   creating: litecart/art/
  inflating: litecart/art/cart.svg   
  inflating: litecart/art/loader.svg  
  inflating: litecart/art/logotype.svg  
.
.
.
inflating: litecart/public_html/vqmod/.htaccess  
 extracting: litecart/public_html/vqmod/checked.cache  
 extracting: litecart/public_html/vqmod/index.html  
 extracting: litecart/public_html/vqmod/mods.cache  
  inflating: litecart/public_html/vqmod/readme.txt  
   creating: litecart/public_html/vqmod/vqcache/
 extracting: litecart/public_html/vqmod/vqcache/index.html  
  inflating: litecart/public_html/vqmod/vqmod.php  
   creating: litecart/public_html/vqmod/xml/
 extracting: litecart/public_html/vqmod/xml/index.html  

Move the Lite cart directory into the /var/www/html directory

linuxhelp Downloads # ls
litecart  litecart-2.1.2.zip
linuxhelp Downloads # mv litecart /var/www/html/
Go to /var/www/html directory
linuxhelp Downloads # cd /var/www/html/
linuxhelp html # ls
index.html  litecart

Change ownership and permission for the lite cart directory

linuxhelp html # chown -R www-data:www-data litecart/
linuxhelp html # chmod -R 775 litecart/

Configure virtual host for Litecart. Create an empty file named lite.conf

linuxhelp html # cd /etc/apache2/sites-available/
linuxhelp sites-available # vim lite.conf
< virtualhost *:80> 
servername  www.linuxhelp1.com
Documentroot  /var/www/html/litecart
< Directory /var/www/html/litecart> 
AllowOverride all
order allow,deny
allow from all
< /Directory> 
< /virtualhost> 

Enable the lite.conf file

linuxhelp sites-available # a2ensite lite.conf 
Enabling site lite.
To activate the new configuration, you need to run:
  service apache2 reload   

Enable the rewrite modules

linuxhelp sites-available # a2enmod rewrite 
Enabling module rewrite.
To activate the new configuration, you need to run:
  service apache2 restart

Enable the headers

linuxhelp sites-available # a2enmod headers 
Enabling module headers.
To activate the new configuration, you need to run:
  service apache2 restart

Make an entry to the hosts file as follows

linuxhelp sites-available # vim /etc/hosts
< give your ip>     < give your domain name> 

Restart apache web server

linuxhelp sites-available # systemctl restart apache2.service 

Now you can proceed the further installation and configuration from the browser by navigating to the following URL: http://< ipaddress or domain name

Verify the system requirement


Assign the installation path

Configure database settings

Configure the store information

Configure the admin user setup

Once the installation is complete you will see the following page.

Log in to admin page from here

Authentication required. provide admin credentials

Login page of lite cart

Admin page of the lite cart

With this, the method to install Lite cart V2.1.2 on Linuxmint-18.03 comes to an end.

Tag : Linux Mint
FAQ
Q
Is there any alternatives in Litecart?
A
WooCommerce. An e-commerce toolkit that helps you sell anything with WordPress. ...
OpenCart. ...
Magento. ...
Shopify. ...
Thirty Bees.
Q
How can I Move the Lite cart directory into the /var/www/html directory?
A
By using this command:
# mv litecart /var/www/html/
Q
How to extract the downloaded package?
A
Run the following command:
# unzip litecart-2.1.2.zip -d litecart
Q
What is Lite cart?
A
LiteCart is a free and open source e-commerce platform which is developed in PHP and uses a MySQL database.
Q
What are the Pre-requirements in Litecart?
A
Install LAMP (Apache, php7.2, mariadb-server)
In MariaDB (create database, user and give privileges to the user)