How to install Quick.Cart shopping cart on CentOS 7

quickcartQuick.Cart is a free and open source shopping cart script written in PHP. Quick.Cart is very simple, but yet powerful shopping card and it can be installed and run on almost all Linux distributions. It does not require an SQL database and it can be installed in less than 5 minutes. In this tutorial we will guide you through the process of installing Quick.Cart on a CentOS 7 VPS with Apache and PHP.

In order to run Quick.Cart on a CentOS 7 VPS, we have to install or enable the following requirements

– PHP version 5.2.0 or higher with the GD module enabled
– Web Server (Apache web server is recommended)

First of all login to your server via SSH as user root

ssh root@IP_Adress

And as usual, run the following command to make sure that all services installed on your server are up to date

yum -y update

Now, we will install Apache web server

yum -y install httpd

Once the web server is installed, start it and set it to start automatically on server boot

systemctl start httpd
systemctl enable httpd

Since Quick.Cart is written in PHP, we will install PHP and the PHP-GD extension

yum -y install php php-gd

That’s all, your server is ready for installing Quick.Cart.

Go to their official website an download the latest release of the script to your server

wget http://opensolution.org/download/home.html?sFile=Quick.Cart_v6.7.zip

Create a new directory for Quick.Cart in the document root directory on your server

mkdir /var/www/html/quickcart

and unpack the downloaded zip archive to the newly created directory

unzip home.html\?sFile\=Quick.Cart_v6.7.zip -d /var/www/html/quickcart

All Quick.Cart file have to be owned by the Apache user. Change the ownership by executing the following command

chown -R apache:apache /var/www/html/quickcart/

Now, we will create Apache virtual host, so you can access Quick.Cart with your domain name.

Create a ‘/etc/httpd/conf.d/vhosts.conf’ file with the following content:

IncludeOptional vhosts.d/*.conf

Create a ‘vhosts.d’ directory is it is not already created.

mkdir /etc/httpd/vhosts.d/

and create the virtual host with the following content

vim /etc/httpd/vhosts.d/yourdomain.com.conf

<VirtualHost YOUR_SERVER_IP:80>
ServerAdmin webmaster@yourdomain.com
DocumentRoot "/var/www/html/quickcart/"
ServerName yourdomain.com
ServerAlias www.yourdomain.com
ErrorLog "/var/log/httpd/yourdomain.com-error_log"
CustomLog "/var/log/httpd/yourdomain.com-access_log" combined

<Directory "/var/www/html/quickcart/">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

Save the file and restart the web server for the changes to take effect

systemctl restart httpd

Once all of the above steps are completed, you will be able to access your new Quick.Cart website at http//yourdomain.com . To access the administrator panel, add ‘admin.php’ (ttp//yourdomain.com/admin.php) at the end of the URL. The default login credentials generated by Quick.Cart are admin/admin . You should change the admin password immediately after you login to the administrator panel. It is also recommended to change the name of the ‘admin.php’ file for security reasons.

You can change the name of the file using the following command

mv /var/www/html/quickcart/admin.php /var/www/html/quickcart/s2jsd2s.php

Now you will be able to access the administrator panel at http//yourdomain.com/s2jsd2s.php


Of course you don’t have to do any of this if you use one of our CenoOS VPS Hosting services, in which case you can simply ask our expert Linux admins to install Quick.Cart for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

Leave a Comment