How to install a shopping cart on Quick.Cart in CentOS 7

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

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

  • PHP version 5.2.0 or higher with GD module enabled
  • Web server (Apache web server recommended)

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

ssh [email protected]_Adress

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

yum -y update

We will now install the Apache web server

yum -y install httpd

Once the web server is installed, start it and set it to start automatically when the server boots

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 it, your server is ready to install Quick.Cart.

Go to their official website and download the latest 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 on the server

mkdir /var/www/html/quickcart

and unzip the downloaded zip archive into the newly created directory

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

All Quick.Cart files must be owned by the Apache user. Change ownership by running the following command

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

We will now create an Apache virtual host so that you can access Quick.Cart from your domain.

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

IncludeOptional vhosts.d/*.conf

Create directory ‘vhosts.d’ if not already created.

mkdir /etc/httpd/vhosts.d/

and create a virtual host with the following content

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

<VirtualHost YOUR_SERVER_IP:80>
ServerAdmin [email protected]
DocumentRoot "/var/www/html/quickcart/"
ServerName yourdomain.ru
ServerAlias www.yourdomain.ru
ErrorLog "/var/log/httpd/yourdomain.ru-error_log"
CustomLog "/var/log/httpd/yourdomain.ru-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 should be able to access the new website at http://yourdomain.com. In order to access the admin panel, add β€œadmin.php” at the end of the URL (http://yourdomain.ru/admin.php). The default login for the account generated by Quick.Cart are admin / admin. You must change the admin password immediately after logging into the admin panel. It is also recommended that you change the name of the admin.php file for security reasons.

You can change the filename with the following command

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

Now you can access the admin panel at http://yourdomain.ru/my_login.php.

PS. If you liked this post, please share it with your friends on social networks using the buttons on the left side of the post, or just leave a comment below. Thank you in advance.

Sidebar