How To Install AbanteCart On Ubuntu Server [Guide]

Have a Linux-powered website and looking to set up a shopping platform for it? If so, do yourself a favor and check out AbanteCart. It’s an open source, free eCommerce platform that users can manage and customize on their own eCommerce platform. Before you can install AbanteCart on Ubuntu server, ensure you have LAMP on it.

Install LAMP

Usually, a LAMP stack is easy to get working on Ubuntu server, as users are able to check a box and load it up during installation. However, if, for some reason you chose to avoid setting this up, install it now with the following commands.

First, run the update tool. Doing this will ensure that the Ubuntu server has the latest packages.

sudo apt update sudo apt upgrade -y

After upgrading, you’ll need to install the Tasksel tool. Using this tool, rather than the traditional Ubuntu package manager is much faster, as you won’t need to specify every single package by hand.

sudo apt install tasksel

Next, use the Tasksel tool to install a LAMP Stack.

Note: during the LAMP installation process, a prompt will appear that asks the user to set a new SQL root password. Be sure to use a memorable, secure password.

‘); if (navigator.appVersion.indexOf(“Mac”)!=-1) document.write(”);

sudo tasksel install lamp-server

Install AbanteCar

When the LAMP installation is complete, it’s safe to install AbanteCart on Ubuntu server. Using the wget tool, download the latest release of the software:

sudo -s  cd /tmp 

Create a new AbanteCart folder inside of /www/html/ with mkdir.

mkdir -p /var/www/html/abantecart

Extract the archive using the unzip command into the new folder.

unzip -d /var/www/html/abantecart

Use the CD command to move into /var/www/html/abantecart/public_html.

cd /var/www/html/abantecart/public_html

Delete all unnecessary files using the rm command.

rm -rf tests  rm *.txt  rm *.md

Move the contents of public_html into /var/www/html/abantecart

mv * ..

Configure AbanteCart

With all the files are in place, it’s time to start configuring AbanteCart on Ubuntu server. The first step is to give the Apache web server ownership of the AbanteCart directory. Without granting ownership to Apache, AbanteCart will not run. Using the chown command, give Apache rights to the folder.

chown -R www-data: /var/www/html/abantecart

Enter /var/www/html/abantecart using CD.

cd /var/www/html/abantecart

Thanks to Chown, the web server has access to /var/www/html/abantecart. However, since the permissions aren’t set right, the software still will not run correctly. To fix this, run the chmod command.

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

SQL Setup

The AbanteCart software uses MySQL to handle its database needs. As a result, you’ll need to create a new SQL database. In the terminal, enter the SQL command interface with the Root user.

mysql -u root -p

In the SQL prompt, create a new database for AbanteCart to use.


Once the database is set up, create a new user and grant it the appropriate permissions.

Note: change ‘securepassword’ with a secure password.

GRANT ALL PRIVILEGES on abantecart.* to 'abante_admin'@'localhost' identified by 'securepassword';

AbanteCart now has an SQL user and database to interact with, which means our work in MySQL is done. To exit the tool, do the following:


Apache Configuration

Setting up AbanteCart on Apache requires minor configuration. Specifically, you’ll need to let Apache know that the AbanteCart software is a site and should be loaded. In the terminal, use the Nano editor to create a new “sites available” file.

sudo nano /etc/apache2/sites-available/abantecart.conf

Paste the following code into abantecart.conf, in Nano.

<VirtualHost *:80>
DocumentRoot /var/www/html/abantecart
<Directory /var/www/html/abantecart/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
ErrorLog /var/log/apache2/abantecart-error_log
CustomLog /var/log/apache2/abantecart-access_log common

Save the file in Nano by pressing the Ctrl + O key combination. Exit the editor with Ctrl + X.

After exiting Nano, enable the new site with:

sudo a2ensite abantecart

Setup AbanteCart

Configuring the AbanteCart app, like most web tools requires a web browser.  To access the tool, open up a new tab in your browser and paste the following URL into the location bar:


Not sure of your server’s local IP address? Try using the ip addr command in terminal:

ip addr show | grep 192.168.1

Running ip addr show in combination with grep will filter out any unnecessary information and isolate the IPv4 local IP address. When the web UI loads up, you’ll be greeted with a sleek setup utility. Follow the instructions on screen to get everything setup.

How To Install AbanteCart On Ubuntu Server [Guide]
Rate this post
About Alex Miller 3299 Articles
Alex Miller is a bestselling Tech author currently working here. His work has received a lot of appreciation from users and is being made to work hard to meet the user's expectations.

Be the first to comment

Leave a Reply

Your email address will not be published.