Install WebERP on Ubuntu 20.04

Updated on July 26, 2021
Install WebERP on Ubuntu 20.04 header image


WebERP is an open-source accounting and business management system written in PHP. You can use it to manage business transactions including, purchase orders, web store, manufacturing, sales, general ledger, and shipping. In this article, you'll learn how to install WebERP on Ubuntu 20.04.


1. Configure MySQL for WebERP

After installing the LAMP stack, you'll need to make a few modifications to run WebERP.

Login into mysql.

$ sudo mysql -u root -p

Create a database named weberp.


Grant all privileges to database weberp.

GRANT ALL ON weberp.* TO 'weberp'@'localhost' IDENTIFIED BY 'SecurePassword';

Reload the changes.


Exit MariaDB.


2. Configuring Apache for WebERP

Modify the Apache 000-default.conf default configuration file.

$ sudo nano /etc/apache2/sites-available/000-default.conf

Delete the file content and replace it with the following lines below. Replace with your domain name.

<VirtualHost *:80>
    DocumentRoot /var/www/html/weberp/

    <Directory /var/www/html/weberp/>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        allow from all

    ErrorLog /var/log/apache2/
    CustomLog /var/log/apache2/ common

Enable Apache rewrite mode.

$ sudo a2enmod rewrite

Restart the Apache webserver.

$ sudo systemctl restart apache2

3. Installing WebERP

Install unzip.

$ sudo apt install unzip

Download WebERP.

$ wget

Unzip WebERP.

$ sudo unzip

Copy the extracted directory to the Apache web root directory.

$ sudo cp -r webERP /var/www/html/weberp

Change the root directories permissions.

$ sudo chown -R www-data:www-data /var/www/html/weberp
$ sudo chmod -R 755 /var/www/html/weberp

Finishing Up

You have successfully installed WebERP on your server.

Access the WebERP page through your browser. For example:

For the database credentials:

  • Use weberp as the database name.
  • Use weberp as the database user name.
  • Use the secure password you set in section 1.