How to Install WebERP on Ubuntu 20.04
WebERP is a free, open-source software solution for handling accounting and enterprise operations, developed using PHP. It enables management of core business activities such as purchase orders, web-based sales, production, inventory shipping, general ledger, and more. This guide will walk you through the steps to install WebERP on a system running Ubuntu 20.04.
Requirements
- Set up a freshly updated Ubuntu 20.04 LTS instance.
- Install the LAMP stack — Linux, Apache, MySQL, and PHP — on the server.
- Create a standard user account with sudo privileges.
Step 1: Adjust MySQL Settings for WebERP
Once the LAMP environment is in place, a few database configuration steps are necessary to enable WebERP functionality.
Access the MySQL shell:
$ sudo mysql -u root -p
Inside MySQL, create a database for WebERP:
CREATE DATABASE weberp;
Assign full access rights to the newly created database:
GRANT ALL ON weberp.* TO 'weberp'@'localhost' IDENTIFIED BY 'SecurePassword';
Apply the permission updates:
FLUSH PRIVILEGES;
Exit the MySQL interface:
\q
Step 2: Configure Apache to Run WebERP
To set up Apache for WebERP, you need to edit the default virtual host configuration file.
Open the Apache configuration file in a text editor:
$ sudo nano /etc/apache2/sites-available/000-default.conf
Remove any existing content in the file and substitute it with the configuration below. Make sure to replace example.com
with your actual domain name.
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/weberp/
ServerName example.com
ServerAlias www.example.com
<Directory /var/www/html/weberp/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/example.com-error_log
CustomLog /var/log/apache2/example.com-access_log common
</VirtualHost>
Enable the Apache rewrite feature:
$ sudo a2enmod rewrite
Restart Apache so the changes can take effect:
$ sudo systemctl restart apache2
Step 3: Install WebERP
To begin setting up WebERP, first install the necessary tool for extracting the archive file.
Install the unzip package:
$ sudo apt install unzip
Download the WebERP package from SourceForge:
$ wget https://sourceforge.net/projects/web-erp/files/webERP_4.15.zip
Extract the downloaded ZIP archive:
$ sudo unzip webERP_4.15.zip
Move the extracted folder into Apache’s web directory:
$ sudo cp -r webERP /var/www/html/weberp
Set the correct ownership and access permissions for the WebERP folder:
$ sudo chown -R www-data:www-data /var/www/html/weberp
$ sudo chmod -R 755 /var/www/html/weberp
Final Steps
The WebERP application has now been successfully deployed on your server.
Open your browser and visit your domain to access the WebERP interface. For example:
http://www.example.com
Use the following settings during the database configuration phase of the setup wizard:
- Database name: weberp
- Database user: weberp
- Password: The secure password you assigned in Step 1