Install Avactis Shopping Cart on a CentOS 7 VPS

avactis centos

Avactis is a free and powerful PHP based shopping cart platform that allows users to easily create online stores. In this tutorial we will install Avactis shopping cart on a CentOS 7 VPS with Apache, PHP and MariaDB.

It comes with tons of useful features such as:

  • User friendly dashboard
  • Easy navigation
  • Unlimited product creation
  • Different payment gateways and shipping methods
  • Social media integration
  • one click Google Analytics integration
  • and many more…

Login to your server as user root to start the Avactis installation

ssh root@IP

Make sure that all packages installed on your server are up to date by running the following command

yum -y update

Next, install Apache web server

yum -y install httpd

Start the Apache service and make it to start automatically on every server reboot

systemctl start httpd
systemctl enable httpd

Install PHP with the php-mysql module

yum -y install php php-mysql

Avactis stores its information in a database, so we have to install a database server. Run the following command to install MariaDB database server.

yum -y install mariadb mariadb-server

Once the MariaDB installation is completed start the database server and set it to start on system boot

systemctl start mariadb
systemctl enable mariadb

It is recommended to run the mysql_secure_installation script to improve the security of the MariaDB server and set the MariaDB root password that you will need in order to login to the MariaDB server.

Avactis requires an empty database, so we have to login to the MariaDB server as user root and create a new user and database that will be used by Avactis to store information

mysql -u root -p

CREATE USER 'avactisuser'@'localhost' IDENTIFIED BY 'PASSWORD';
GRANT ALL PRIVILEGES ON `avactis`.* TO 'avactisuser'@'localhost';

Don’t forget to replace ‘PASSWORD’ with an actual strong password.

Go to Avactis official website and download the latest release of their application. To do this, you will have to enter your email address and they will send you a link for downloading Avactis and the license key to your email address. Once the zip archive is downloaded, upload it to your server via FTP or sFTP.

Next, create a new directory for the Avactis files in the document root directory on your server and unpack the downloaded ZIP archive

mkdir /var/www/html/avactis
unzip -d /var/www/html/avactis

Set the Apache user to be owner of the Avactis files and directories

chown apache:apache /var/www/html/avactis/

On the next step we will create Apache virtual host for your Avactis shopping cart. Create ‘/etc/httpd/conf.d/vhosts.conf’ file with the following content:

IncludeOptional vhosts.d/*.conf

Create a ‘vhosts.d/’ directory

mkdir /etc/httpd/vhosts.d/

and create the virtual host with the following content

vim /etc/httpd/vhosts.d/

<VirtualHost YOUR_SERVER_IP:80>
DocumentRoot "/var/www/html/avactis/"
ErrorLog "/var/log/httpd/"
CustomLog "/var/log/httpd/" combined

<Directory "/var/www/html/avactis/">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted

Save the changes and restart the Apache web server for the changes to take effect.

systemctl restart httpd

With this step the installation from the command line is completed. We need to access the Avactis installation script at and follow the on-screen instructions to complete the Avactis installation. The installer will check if your server meets all the requirements. If everything is OK you will be prompted to enter the MariaDB database information and create administrative user.

Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install Avactis for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

Easy vsFTPD – FTP server with virtual users on Debian 8 Jessie
How to Install Dolibarr ERP CRM on a CentOS 7 VPS
Install ownCloud on a CentOS 6 Server
There are currently no comments.