LiteCart is a free online catalog and cart platform. Focusing on lightweight and simplicity. Its Developed in PHP using HTML 5 and CSS 3 standards with logical design and a simple to use interface. The framework is constructed to be lightweight and easy for developers to modify and build upon. LiteCart derives from many years experience using different e-commerce platforms. It has clean and simple admin panel which is streamlined for daily work procedures. The name LiteCart stands for simplicity, lightweight and convenience concerning both usage and development. Its Interfaces should be based on logic and convention while the content should never be more than two clicks away and code should have a simple but consequent structure.That's what LiteCart provide.
In this tutorial we will show you the installation and configuration of LiteCart on your Ubuntu 15.04/15.10 server with Nginx, PHP-FPM and MySQL.
Our first is to make sure that your server is fully up to date. To do so login to your Ubuntu server and run the command below to install the updates and other security patches on your server.
# apt-get update && apt-get upgrade
Press 'Y' key to start installing required updates upon prompt.
Installing Apache and MySQL-Server:
After completing system updates, we will be installing Apache, PHP-FPM, MySQL and some of its other required dependencies. Let's run the following command to install Apache Web server, MySQL Data base first.
# apt-get install apache2 mysql-server
Type 'Y' and then hit 'Enter' key to continue installation process. then you will be asked to set a password for the MySQL administrative "root" user as shown. Let's type a secure password and then click onto 'OK' button to proceed.
After configuring the root password of MySQL server, your installation process will be completed with all mentioned packages and their dependencies.
Installing PHP and Its Modules:
To install PHP an its required modules for LiteCart, run the following command and then press 'Y' key to proceed when you will be asked.
# apt-get install php5 libapache2-mod-php5 php5-mcrypt php5-mysql php5-gd
Creating New MySQL Database
Now we are going to start and enable MySQL services to run automatically during reboot and then, create the database needed for LiteCart by login into MySQL service using its root credentials.
So, run below commands to start myql service and check its status, that should be up and running.
# systemctl enable mysql.service
# systemctl start mysql.service
# systemctl status mysql.service
We can see that that MySQL servce is up and running, now to connect to the MySQL server , run below command and provide your root user credentials.
# mysql -u root -p
Then run below command to create a new database that will be used for LiteCart and assign it privileges to its separate user.
mysql> create database lcart;
mysql> grant all privileges on lcart.* to lcuser@localhost identified by 'password';
mysql> flush privileges;
You can choose the Default Character setup using below command, if you wish to do so but its optional.
mysql> create database lcart DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
Before installing the LiteCart we need to go to LiteCart’s Download Page and download the latest stable version of LiteCart, At the moment of writing this article its stable version 1.3.4 as shown.
Place the LiteCart package after creating a new directory and extract it by running the following 'unzip' command.
# mkdir /var/www/litecart
# cd /var/www/html/litecart/
# unzip litecart-184.108.40.206.zip
If you don't have unzip package installed on your system, then you can install it with below command.
# apt-get install unzip
Change the ownership of the directory.
# chown www-data:www-data -R /var/www/html/litecart/
In this step we will configure our Apache web server so that we can access LiteCart in our browser. Run the command below to create a new file and the place the following configuration it.
# vi /etc/apache2/sites-available/litecart.conf
allow from all
CustomLog /var/log/apache2/your_domain.com/access_log common
Create the directory and the logs files that you have mentioned in your configuration file.
# mkdir /var/log/apache2/your_domain
# touch /var/log/apache2/linox/error_log
# touch /var/log/apache2/linox/access_log
LiteCart Web Access:
We are done with command line installation setup with LAMP stack for the LiteCart. Now Open your web browser and access the URL with your Domain name or IP address and you will be directed to the web install page where you will have see all the settings about your Litecart setup as shown below.
Choose the appropriate parameters by selecting your MySQL database settings, and the admin user account. Then click on the Installation button at the bottom of your web page. You will get the message about successful installation as shown.
Click on the Administration Area to login to your LiteCart web portal by providing your admin login details.
After successful credentials you will be directed towards your good looking LiteCart Dashboard which will looks similar to the below image.
Enjoy, We have successfully installed and Setup LiteCart on our Ubuntu 15.10 server with LAMP stack. If you are using a firewall, then please don't forget to open port 80 to enable access to the control panel and delete the install directory in /var/www/html/litecart/ . Thank you for staying with us, will get back to with some more helpful articles.