How to install Open ESHOP on Ubuntu 16.04 LTS

In this article, we will show you how to install Open ESHOP on your Ubuntu 16.04 LTS server. For those of you who don’t know, Open eShop is an open source e-commerce software written in PHP that lets you sell software, music, e-books, or anything else you might want.

This article assumes that you at least have basic Linux knowledge, know how to use the shell, and most importantly, you host your site on your own VPS. Installation is very simple and assumes you are running under the root account unless you can add “sudo” to the commands to gain superuser privileges. We will walk you through the installation of Open eShop on Ubuntu 16.04 LTS Xenial Xerus step by step.

Installing Open ESHOP on Ubuntu 16.04 LTS

Step 1. Server update.

First make sure all system packages are up to date by running these following commands in terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing LAMP (Linux, Apache, MariaDB and PHP) on the server.

Ubuntu 16.04 server requires LAMP. If you don’t have LAMP installed, you can read the guide here. Also install all required PHP modules:

apt-get install php7.0-readline php7.0-curl php7.0-gd php7.0-mbstring libapache2-mod-php7.0 php7.0-mcrypt php7.0-bz2 php7.0-zip

Step 3. Installing Open ESHOP Lite.

First, download the latest stable version of the Open ESHOP setup file from their official website using the following command:

mkdir /var/www/html/openeshop
cd /var/www/html/openeshop
wget https://raw.githubusercontent.com/open-classifieds/open-eshop/master/install-eshop.php

Change the owner of the script with the following command:

chown -R www-data:www-data install-eshop.php

Step 4. Configuring MariaDB database for Open eShop.

By default, MariaDB is not secure. You can secure MariaDB using the mysql_secure_installation script. You must read and follow each step carefully, which will set the root password, remove anonymous users, disable remote admin login, and remove the test database and secure MySQL access.

mysql_secure_installation

Set it up like this:

- Set root password? [Y/n] y
- 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

Next, we will need to log into the MariaDB console and create a database for Open eShop. Run the following command:

mysql -u root -p

You will be prompted for a password, so enter your root password for MariaDB and press Enter. Once you are logged into the database server, you need to create a database for the software with Open eShop:

CREATE DATABASE openeshop_db;
CREATE USER 'openeshop'@'localhost' IDENTIFIED BY 'usr_strong_pwd';
GRANT ALL PRIVILEGES ON openeshop_db.* TO 'openeshop'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Step 5. Configuring Apache web server for Open eShop.

Create a new Apache virtual host directive. For example, you can create a new Apache configuration file called “openshop.conf” on the virtual server:

sudo a2enmod rewrite
touch /etc/apache2/sites-available/openshop.conf
ln -s /etc/apache2/sites-available/openshop.conf /etc/apache2/sites-enabled/openshop.conf
nano /etc/apache2/sites-available/openshop.conf

Add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/openeshop/
ServerName your-domain.ru
ServerAlias www.your-domain.ru
<Directory /var/www/html/openeshop/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.ru-error_log
CustomLog /var/log/apache2/your-domain.ru-access_log common
</VirtualHost>

The next step is to adjust some of the values ​​in the PHP configuration files as follows:

nano /etc/php/7.0/apache2/php.ini

Update the post_max_size, upload_max_filesize and short_open_tag values ​​as follows:

post_max_size = 64M
upload_max_filesize = 64M
short_open_tag = On

Now we can restart the Apache web server for the changes to take effect:

systemctl restart apache2.service

Step 6. Gaining access to Open ESHOP.

The online store can be opened on HTTP on port 80 by default. Open your favorite browser and go to http://yourdomain.com or http: // server IP and follow the necessary steps to complete the installation. If you are using a firewall, you need to open port 80 to allow access to the control panel.

Congratulations! You have successfully installed Open ESHOP. Thank you for using this article to install the open source e-commerce Open ESHOP software on your Ubuntu 16.04 LTS system. For further assistance or useful information, we recommend that you visit official website of Open ESHOP

Sidebar