• Get In Touch
April 10, 2017

How to Install AbanteCart on CentOS 7

Want your very own server? Get our 1GB memory, Xeon V4, 25GB SSD VPS for £10.00 / month.
Get a Cloud Server

AbanteCart is a free and open source ecommerce platform for merchants to provide ability in creating online businesses in order to sell products online quickly and efficiently.

AbanteCart comes with powerful core features and numerous extensions that allow you to build an online business and start selling your products in minimal time.

You can easily customize AbanteCart via a wide variety of available extensions. It is suitable for small to large online shopping websites.
AbanteCart provides lots of features including HTML5 based responsive templates, stock management, order history, password reminder, multi-currency and multi-language support. It also has support for a variety of payment gateways such as Paypal, Payza, AIM, Bank Transfer, Skril, SagePay, WordPay and many more.

Here, we will explain how to install AbanteCart on CentOS 7 server.

Requirements

  • A server runing CentOS 7 on your system.
  • A non-root user with sudo privileges setup on your server.
  • A static IP address 192.168.15.193 setup on your server.

Update the System

Before starting, you will need to update the system with the latest version. You can do this with the following command:

sudo yum update -y

Once your system is up to date, you can proceed to the next step.

Install LAMP Server

First, you will need to install LAMP server (Apache, MariaDB and PHP) and other required packages on your server as a prerequisites of AbanteCart.
You can install all of them by running the following command:

sudo yum install httpd mariadb-server mariadb php php-mysql php-fpm php-gd php-mbstring unzip wget -y

Once the installation is complete, start the apache and mariadb service and enable it to start on boot with the following command:

sudo systemctl start httpd
sudo systemctl start mariadb
sudo systemctl enable httpd
sudo systemctl enable mariadb

Once you are done, you can proceed to the next step.

Configure Database for Abantecart

By default, MariaDB is not secured, so you will need to secure it first. You can secure it by running the mysql_secure_installation script:

sudo mysql_secure_installation

Answer all the questions as follows:

Enter current password for root (enter for none): Enter
Set root password? [Y/n]: Y
New password: <your-password>
Re-enter new password: <your-password>
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tables now? [Y/n]: Y

Once MariaDB is secured, you can login to MySQL shell with the following command:

mysql -u root -p

Enter your root password when prompt.

Next, create a database named abantedb with the username abante and password password:

MariaDB [(none)]> Create database abantedb;
MariaDB [(none)]>CREATE USER 'abante'@'localhost' IDENTIFIED BY 'password';

Next, grant all privileges with the following command:

MariaDB [(none)]> GRANT ALL PRIVILEGES ONabantedb.* TO 'abante'@'localhost';

Next, flush all privileges:

MariaDB [(none)]> FLUSH PRIVILEGES;

Then, exit from the MySQL shell:

MariaDB [(none)]>quit;

Download AbanteCart

First, you will need to download the latest version of the AbanteCart from GitHub repository. Use the following command to download it:

wget https://github.com/abantecart/abantecart-src/archive/master.zip

Once the download is complete, unzip the downloaded file with the following command:

unzip master.zip

Next, move the extracted directory to apache web root directory:

sudo mv abantecart-src-master/public_html /var/www/html/abantecart

Next, you will need to change the permission of some files and directories of AbanteCart installation directory.

You can do this with the following commands:

cd /var/www/html/abantecart

sudo chmod -R 777 image/ system/ download/ extensions/ resources/ admin/system/backup/

sudo chmod 777 system/config.php

After that, restart apache web server with the following command:

sudo systemctl restart httpd

Configure Apache for AbanteCart

Next, you will need to create a virtual host file for apache. You can do this by creating abantecart.conf file:

sudo nano /etc/httpd/conf.d/abantecart.conf

Add the following lines:

<VirtualHost *:80>
    ServerAdmin admin@example.com
    DocumentRoot "/var/www/html/abantecart"
    ServerName 192.168.15.193
    ErrorLog "/var/log/httpd/abantecart-error_log"
    CustomLog "/var/log/httpd/abantecart-access_log" combined
<Directory "/var/www/html/abantecart/">
    Options Indexes MultiViews FollowSymlinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
</VirtualHost>

Save the file when you are finished, then restart apache web server with the following command:

sudo systemctl restart httpd

Access AbanteCart Web Interface

Before accessing AbanteCart web interface, you will need to configure your firewall to allow port 80 so that the Apache web server’s default port
will be accessible externally.

You can do this with the following command:

sudo firewall-cmd --zone=public --add-port=80/tcp --permanent

Next, reload your firewall service with the following command:

sudo firewall-cmd --reload

Once, everything is configured, open your web browser and type the URL http://192.168.15.193, you will be directed to AbanteCart Licence agreement page:

Here, agree to the licence and click on the Continue button. You should see the following page:

HP_NO_IMG/data/uploads/users/7ecb43a5-b365-4ebf-93d5-f3b632f29f33/1926243656.png” alt=”” />

Here, you should confirm that every required dependencies are fulfilled, then click on the Continue button, you should see the following page:

HP_NO_IMG/data/uploads/users/7ecb43a5-b365-4ebf-93d5-f3b632f29f33/248705343.png” alt=”” />

Here, provide all the required information such as database name, username, password, admin username and admin password, then click on the continue button.

Once the installation is completed, click on “Login to your Control Panel” then provide your admin credentials to login to the AbanteCart Dashboard.

Next, you will need to secure the installation file for the security issue. You can do this by deleting the installation directory:

sudo rm -rf /var/www/html/abantecart/install/

Congratulations! You have successfully installed AbanteCart on your CentOS 7 server. You can now easily create your own online shopping cart and host in your production environment.

Want your very own server? Get our 1GB memory, Xeon V4, 25GB SSD VPS for £10.00 / month.
Get a Cloud Server

Share this Article!

Related Posts

Node.js Authentication – A Complete Guide with Passport and JWT

Node.js Authentication – A Complete Guide with Passport and JWT

Truth be told, it’s difficult for a web application that doesn’t have some kind of identification, even if you don’t see it as a security measure in and of itself. The Internet is a kind of lawless land, and even on free services like Google’s, authentication ensures that abuses will be avoided or at least […]

Node.js and MongoDB: How to Connect MongoDB With Node

Node.js and MongoDB: How to Connect MongoDB With Node

MongoDB is a document-oriented NoSQL database, which was born in 2007 in California as a service to be used within a larger project, but which soon became an independent and open-source product. It stores documents in JSON, a format based on JavaScript and simpler than XML, but still with good expressiveness. It is the dominant […]

Using MySQL with Node.js: A Complete Tutorial

Using MySQL with Node.js: A Complete Tutorial

Although data persistence is almost always a fundamental element of applications, Node.js has no native integration with databases. Everything is delegated to third-party libraries to be included manually, in addition to the standard APIs. Although MongoDB and other non-relational databases are the most common choice with Node because if you need to scale an application, […]

Node.Js Vs Django: Which Is the Best for Your Project

Node.Js Vs Django: Which Is the Best for Your Project

Django and NodeJs are two powerful technologies for web development, both have great functionality, versatile applications, and a great user interface. Both are open source and can be used for free. But which one fits your project best? NodeJs is based on JavaScript, while Django is written in Python. These are two equally popular technologies […]

Nodejs Vs PHP:  Which Works Best?

Nodejs Vs PHP: Which Works Best?

Before getting into the “battle” between Node.js and PHP we need to understand why the issue is still ongoing. It all started with the increased demand for smartphone applications, their success forcing developers to adapt to new back-end technologies that could handle a multitude of simultaneous requests. JavaScript has always been identified as a client-side […]