How to Install CS-Cart on CentOS 7.6

Installation of CS-Cart on CentOS 7.6

CS-Cart is an eCommerce shopping cart software tool written in PHP and uses MySQL database system. It is used for theme editor, layout editor, different payment system, multi-store, integrated SEO and many more. In this tutorial, we will cover the installation of CS-cart on Centos 7.6

Requirements for CS-cart:

Apache

MariaDB

PHP and its modules

php-gd php-curl php-common php-mysql php-soap php-mysql php-mcrypt php-mbstring php-zip php-xml php-gd

Installation procedure

Check the CentOS version by using the following command.

[root@linuxhelp ~]# rpm -q centos-release
centos-release-7-6.1810.2.el7.centos.x86_64

Configure the MySQL database. Log into MySQL as a root user and make the necessary settings.

[root@linuxhelp ~]# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.60-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database cscartdb;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> create user 'csuser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.01 sec)
MariaDB [(none)]> grant all privileges on cscartdb.* to 'csuser'@localhost;
Query OK, 0 rows affected (0.01 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> Ctrl-C -- exit!
Aborted

List out the files.

[root@linuxhelp ~]# ls
anaconda-ks.cfg        Desktop    Downloads             Music     Public              Templates
cscart_v4.9.3.SP1.zip  Documents  initial-setup-ks.cfg  Pictures  remi-release-7.rpm  Videos

Now extract the previously downloaded installation package using unzip command.

[root@linuxhelp ~]# unzip cscart_v4.9.3.SP1.zip -d cscart
Archive:  cscart_v4.9.3.SP1.zip
  inflating: cscart/.htaccess        
  inflating: cscart/admin.php        
  inflating: cscart/api.php          
   creating: cscart/app/
  inflating: cscart/app/.htaccess    
   creating: cscart/app/Tygh/ 
.
.
 inflating: cscart/var/themes_repository/responsive/templates/views/tabs/components/product_tabs.tpl  
   creating: cscart/var/upgrade/
  inflating: cscart/var/upgrade/.htaccess  
  inflating: cscart/var/upgrade/restore.php  
   creating: cscart/var/snapshots/
  inflating: cscart/var/snapshots/4.9.3.sp1_ultimate_dist.php  
  inflating: cscart/copyright.txt   

Move the CS-cart directory to apache root directory.

[root@linuxhelp ~]# mv cscart /var/www/

Set the ownership and permission for CS-cart by using the following command

[root@linuxhelp ~]# chown -R apache:apache /var/www/cscart
[root@linuxhelp ~]# chmod -R 755 /var/www/cscart

Configure the virtualhost for accessing the CS-cart

[root@linuxhelp ~]# vim /etc/httpd/conf.d/cscart.conf
<Virtualhost *:80>
        Servername www.linuxhelp1.com
        documentroot /var/www/cscart
<directory /var/www/cscart>
allowoverride all
allow from all
</directory>
</virtualhost>

Restart the apache service by using the following command.

[root@linuxhelp ~]# systemctl restart httpd

Switch to your browser and enter your domain name. The installation page of CS-Cart appears on the screen. Click the Install option. Accept the license agreement and Click next. Check the configuration setup.

Configure the database details. Configure the admin credentials. Installation is in process. The installation process is completed. To enter into the admin panel, click Go to the administration panel. The admin dashboard of CS-Cart is displayed on the screen.

With this, the method to install CS-cart on CentoS 7.6 comes to an end.

FAQ
Q
What are the php modules required for CS-Cart on ubuntu?
A
These are the php-modules required for CS-Cart

php php-xml php-mysql php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common php-dev libmcrypt-dev php-pear
Q
What are the requirements for CS-cart?
A
These are the requirements for cs-cart
Apache
MariaDB
PHP and its modules
Q
Where to download the CS-Cart installation package?
A
This is the offical website of CS-Cart here you can download the installation package https://www.cs-cart.ie/cs-cart-free-download/
Q
What PHP Version is requirement for this CS-Cart?
A
PHP 5.6 and above version will be required for CS-Cart application.
Q
What is CS-Cart?
A
CS-Cart is an eCommerce shopping cart software with an intuitive admin panel. It hosts a plethora of features such as theme editor, layout editor, different payment system, multi-store, integrated SEO, and cloud-powered search function. It is mainly written in PHP and uses MySQL database system