How to Install Cube Cart on CentOS 7.6

Installation of CubeCart on CentOS 7.6

CubeCart is an open source e-commerce shopping cart software used for Linux distributions. It allows the users to set up their own online stores to sell digital or physical products over all the world. Cubecart is a truly free, user-friendly, open source shopping cart software. It contains features such as customization, integration with payment, works with any hosting company and can choose own domain name.This tutorial covers the installation of Cubecart on CentOS 7.6

Requirements for Cube cart

Apache MariaDB PHP and its modules php php-xml php-mysql php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common php-mcrypt

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 cubedb;
Query OK, 1 row affected (0.05 sec)

MariaDB [(none)]> create user 'cubeuser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.15 sec)

MariaDB [(none)]> grant all privileges on cubedb.* to 'cubeuser'@localhost;
Query OK, 0 rows affected (0.03 sec)


MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> Ctrl-C -- exit!
Aborted

Once the database configuration is done, download the installation package of CubeCart by using the wget command.

 [root@linuxhelp ~]# wget https://github.com/cubecart/v6/archive/6.2.0-branch.zip
--2019-05-29 11:28:43--  https://github.com/cubecart/v6/archive/6.2.0-branch.zip
Resolving github.com (github.com)... 13.234.176.102
Connecting to github.com (github.com)|13.234.176.102|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/cubecart/v6/zip/6.2.0-branch [following]
--2019-05-29 11:28:44--  https://codeload.github.com/cubecart/v6/zip/6.2.0-branch
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘6.2.0-branch.zip’

    [  <=>                                                      ] 6,604,533    402KB/s   in 27s    

2019-05-29 11:29:11 (243 KB/s) - ‘6.2.0-branch.zip’ saved [6604533]

Once the download is completed extract the downloaded package using unzip command.

 [root@linuxhelp ~]# unzip 6.2.0-branch.zip
Archive:  6.2.0-branch.zip
7034a3755ce9a2d070a11efaee9d2fb90e123887
   creating: v6-6.2.0-branch/
  inflating: v6-6.2.0-branch/admin.php  
   creating: v6-6.2.0-branch/admin/
  inflating: v6-6.2.0-branch/admin/.htaccess  
  inflating: v6-6.2.0-branch/admin/index.php  
   creating: v6-6.2.0-branch/admin/skins/
.
.
  inflating: v6-6.2.0-branch/skins/foundation/templates/element.search.manufacturers.select.chosen.php  
  inflating: v6-6.2.0-branch/skins/foundation/templates/element.social.php  
  inflating: v6-6.2.0-branch/skins/foundation/templates/main.checkout.php  
  inflating: v6-6.2.0-branch/skins/foundation/templates/main.php  
  inflating: v6-6.2.0-branch/skins/foundation/templates/print.receipt.php  

Move the Cube cart directory to apache root directory.

[root@linuxhelp ~]# mv v6-6.2.0-branch /var/www/cubecart

Set the ownership and permission for Cube cart by using the following command.

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

Configure the virtualhost for accessing the CubeCart.

 [root@linuxhelp ~]# vim /etc/httpd/conf.d/cubecart.conf
<Virtualhost *:80>
        Servername www.linuxhelp1.com
        Documentroot /var/www/cubecart
<directory /var/www/cubecart>
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 the domain name Verify whether all the pre-requirements are met and click on continue to proceed Now as you can see you cubecart is being installed on the server. Next, you need to accept the license agreement. Just verify that file permission and click on continue. need to configure the database setup Configure the language setup Configure the admin credentials After the installation completed you will see the following page After the installation, you can log in using the admin user credentials to access the cubecart. This is the dashboard of cube cart With this, the method to install Cubecart On Centos 7.6 comes to an end.

FAQ
Q
How to configure the host entry for Cubecart?
A
Enter into #vim /etc/hosts



Q
What are the rquired php and its module for Cubecart?
A
These are the required php modules



php libapache2-mod-phpphp-mcrypt php-mysql php-gd php-xml php-mbstring php-curl
Q
What is CubeCart?
A
CubeCart is an open source e-commerce shopping cart software used for Linux distributions. It allows users to set up their own online stores to sell digital or physical products all over the world.
Q
While calling in browser . It opens the default apache page for Cubecart ?
A
Check the document root specified in virtual host
Q
While accessing CubeCart in web interface results in a blank page, How to resolve this?
A
In CubeCart, check for php and php modules are installed properly and also look into the Apache error logs.