Miscellaneouss

How to Install LiteCart on CentOS 7

LiteCart is another creative free shopping cart platform created in PHP. Established by swedish engineer T. Almroth. In view of the most recent present day innovation, for example, PHP 5.3+, jQuery, HTML 5 and CSS 3. Sensible design and an easy to utilize interface. The framework is constructed to be lightweight and easy for developers to modify and build upon. LiteCart is a free e-commerce, feature rich e-commerce solution.

In this article I will show you how to install LiteCart on CentOS 7 machine.

Install LiteCart on CentOS 7

Prerequisites

  • LAMP ( Apache, MariaDB, PHP7) Stack should be installed on the system.
  • Create a database and user with sufficient privileges to user.
  • PHP Modules : mod_php71w php71w-cli php71w-common php71w-gd php71w-mbstring php71w-mcrypt php71w-mysqlnd php71w-xml
  • Required Repository : EPEL and Webtatic

LiteCart Installation

First of all you have to download LiteCart package into your web document root directory from its Official Website. After downloaded LiteCart package go to html location with help of below command and list it.

# cd /var/www/html/
# ll
total 2544
-rwxrw-rw- 1 root root 2604063 Nov  9 13:48 litecart-2.0.2.zip

Once download download completed, extract it using below command.

# unzip litecart-2.0.2.zip -d litecart
Archive:  litecart-2.0.2.zip
  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/art/noimage.svg  
   creating: litecart/public_html/
extracting: litecart/public_html/vqmod/xml/index.html  
  inflating: litecart/CREDITS.md     
  inflating: litecart/LICENSE.md     
  inflating: litecart/README.md  
.....
....

Change ownership of the LiteCart directory.

# chown apache:apache -R litecart

Now create Apache virtual host config file called “litecart.conf” and add the below line in it.

# vim /etc/httpd/conf.d/litecart.conf
ServerAdmin [email protected]
DocumentRoot /var/www/html/litecart/
ServerName litecart.com
ServerAlias www.litecart.com

Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all

ErrorLog /var/log/httpd/litecart.com-error_log
CustomLog /var/log/httpd/litecart.com-access_log common

Save and close file.

Edit the local hosts file and add the below line.

# vim /etc/hosts
192.168.0.5	  litecart.com   # My local machine IP and domain name

Save and close file. Now restart Apache service using below command.

# systemctl restart httpd

Now go to your web browser and type the below URL.

http://litecart.abc/public_html

LiteCart installation page will be open.

LiteCart-img-1

Scroll down the page and fill the database, admin and store details.

LiteCart-img-2

Then click on Install button.

LiteCart-img-3

Click on OK button to proceed.

LiteCart-img-4

LiteCart has been installed on you system. Click on admin area to open admin panel.

LiteCart-img-5

LiteCart-img-6

Enter your admin details and click on OK button.

LiteCart-img-7

Again it will ask for your admin details. Fill the admin details and click on Login.

LiteCart-img-8

After clicking on Login button next admin page will appear on your screen.

LiteCart-img-9

Thank you! for visiting LookLinux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at LookLinux Submit Article. Stay connected to Facebook.

About the author

mm

Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment