How to install Cubecart 6.2.0 Ubuntu 18.04

To install Cubecart 6.2.0 Ubuntu 18.04


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.

Prerequisites


Install LAMP(Apache, MariaDB, php7)
In MariaDB (create database and user and give privileges to that user )

Php installation with required following modules

add-apt-repository ppa:ondrej/php 
apt-get update 
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd php7.0-mbstring php7.0  php7.0-common  php7.0-xmlrpc php7.0-soap  
php7.0-xml php7.0-intl  php7.0-cli  php7.0-ldap php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl

Switch to the following directory

root@linuxhelp1:~# cd /home/user1/Downloads/

Download a Cubecart CMS package using the following URL

root@linuxhelp1:/home/user1/Downloads# wget https://www.cubecart.com/download/CubeCart-6.2.0.zip
--2018-05-26 04:39:27--  https://www.cubecart.com/download/CubeCart-6.2.0.zip
Resolving www.cubecart.com (www.cubecart.com)... 45.32.179.53
Connecting to www.cubecart.com (www.cubecart.com)|45.32.179.53|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5194603 (5.0M) [application/zip]
Saving to: ‘ CubeCart-6.2.0.zip’ 

CubeCart-6.2.0.zip      100%[==============================> ]   4.95M  1.05MB/s    in 5.4s    

2018-05-26 04:39:33 (942 KB/s) - ‘ CubeCart-6.2.0.zip’  saved [5194603/5194603]

The downloaded package is a zip file, so unzip the file now

root@linuxhelp1:/home/user1/Downloads# unzip CubeCart-6.2.0.zip -d cubecart
Archive:  CubeCart-6.2.0.zip
   creating: cubecart/admin/
  inflating: cubecart/admin/index.php  
   creating: cubecart/admin/skins/
   creating: cubecart/admin/skins/default/
   creating: cubecart/admin/skins/default/images/
.
.
  inflating: cubecart/skins/foundation/templates/main.checkout.php  
  inflating: cubecart/skins/foundation/templates/content.checkout.confirm.php  
  inflating: cubecart/skins/foundation/templates/content.orders.php  
  inflating: cubecart/skins/foundation/templates/content.recover.php  
  inflating: cubecart/skins/foundation/templates/element.css.php  
 extracting: cubecart/skins/foundation/templates/.htaccess  
  inflating: cubecart/skins/foundation/templates/content.product.php

Move the extracted file into the following path

root@linuxhelp1:/home/user1/Downloads# mv cubecart /var/www/

Switch to the following directory

root@linuxhelp1:/home/user1/Downloads# cd /var/www/

Cange the ownership and permission of the file

root@linuxhelp1:/var/www# chown -R www-data.www-data cubecart
root@linuxhelp1:/var/www# chmod -R 775 cubecart

Create a new virtual host configuration for accessing the Cubecart CMS application

root@linuxhelp1:/var/www# vim /etc/apache2/sites-available/cubecart.conf
< VirtualHost *:80> 
ServerName www.linuxhelp1.com
DocumentRoot /var/www/cubecart/

< Directory /var/www/cubecart/> 
AllowOverride All
allow from all
< /Directory> 

< /VirtualHost> 

Enable the site access

root@linuxhelp1:/var/www# a2ensite cubecart.conf

Enabling site cubecart.
To activate the new configuration, you need to run:
systemctl reload apache2

Disable the default access

root@linuxhelp1:/var/www# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2

Enable the rewrite module

root@linuxhelp1:/var/www# a2enmod rewrite

Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2

Restart the apache2 service

root@linuxhelp1:/var/www# systemctl restart apache2

Now you can proceed the further installation and configuration from the browser by navigating to the following URL: http://< ipaddress or domain name

verify the compatibility check and continue

You will see the installation progress as shown here

Accept the license agreement to use the Cubecart application

Check out the file permission of Cubecart

configure the database details as follows

After the successful installation, you will see the following page

Log in using the admin user credentials

After the successful installation, you will see the admin dashboard of cubecart

The homepage of cubecart site

with this, the method to install Cubecart 6.2.0 Ubuntu 18.04 comes to an end.

Tag : Ubuntu
FAQ
Q
What is the stable PPA to be added for installing PHP on Ubuntu?
A
The stable PPA to be used for installing PPA in Ubuntu is as follows
# add-apt-repository ppa:ondrej/php
Q
Is Cubecart opensource?
A
Cubecart is a free and opensource application.
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 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.
Q
How to enable host entry for Cubecart on Ubuntu?
A
To enable host entry for Cubecart use the following
# vim /etc/hosts
Q
Are there any alternatives to Cubecart?
A
The alternatives of Cubecart are as follows,
PrestaShop
WooCommerce
OpenCart