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 ON

.* TO 'abante'@'localhost';

abantedb

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.