How to install webERP on linuxmint-18.03

To install webERP on linuxmint-18.03

WebERP is an open source, web based accounting and business management tool for Small and Medium Enterprises. It supports almost all platforms and is very useful as an online shop or a retail management system for business.


Pre-requirements
Install LAMP (Apache, php7.0, mariadb-server)
In MariaDB (create database, user and give privileges to the user)

FOR PHP INSTALLATION

apt-get install python-software-properties
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 php7.0-mcrypt php7.07.2-xmlrpc php7.0-gd php7.0-mbstring php7.0  php7.0-common  php7.0-xmlrpc php7.0-soap 
php7.0-xml php7.0-intl  php7.0-cli  php7.0-ldap php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl

Installation

Download webErp package using wget command

linuxhelp ~ # wget https://netix.dl.sourceforge.net/project/web-erp/webERP4.14.1.zip
--2018-05-17 14:02:30--  https://netix.dl.sourceforge.net/project/web-erp/webERP4.14.1.zip
Resolving netix.dl.sourceforge.net (netix.dl.sourceforge.net)... 87.121.121.2
Connecting to netix.dl.sourceforge.net (netix.dl.sourceforge.net)|87.121.121.2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 30862574 (29M) [application/octet-stream]
Saving to: ‘ webERP4.14.1.zip’ 

webERP4.14.1.zip          78%[=========================>         ]  23.20M  60.2KB/s    in 2m 22s  
.
.
.

2018-05-17 14:05:25 (123 KB/s) - Connection closed at byte 27983872. Retrying.

--2018-05-17 14:05:27--  (try: 3)  https://netix.dl.sourceforge.net/project/web-erp/webERP4.14.1.zip
Connecting to netix.dl.sourceforge.net (netix.dl.sourceforge.net)|87.121.121.2|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 30862574 (29M), 2878702 (2.7M) remaining [application/octet-stream]
Saving to: ‘ webERP4.14.1.zip’ 

webERP4.14.1.zip         100%[++++++++++++++++++++++++++++++===> ]  29.43M   249KB/s    in 18s     

2018-05-17 14:05:46 (158 KB/s) - ‘ webERP4.14.1.zip’  saved [30862574/30862574]

Extract the package using the following command.


linuxhelp ~ # unzip webERP4.14.1.zip 
Archive:  webERP4.14.1.zip
   creating: webERP/
  inflating: webERP/AccountGroups.php  
  inflating: webERP/AccountSections.php  
  inflating: webERP/AddCustomerContacts.php  
  inflating: webERP/AddCustomerNotes.php  
  inflating: webERP/AddCustomerTypeNotes.php  
  inflating: webERP/AgedControlledInventory.php  
  inflating: webERP/AgedDebtors.php  
 .
.
.
inflating: webERP/Z_UpdateChartDetailsBFwd.php  
  inflating: webERP/Z_UpdateItemCosts.php  
  inflating: webERP/Z_UpdateSalesAnalysisWithLatestCustomerData.php  
  inflating: webERP/Z_Upgrade3.10.php  
  inflating: webERP/Z_Upgrade_3.01-3.02.php  
  inflating: webERP/Z_Upgrade_3.04-3.05.php  
  inflating: webERP/Z_Upgrade_3.05-3.06.php  
  inflating: webERP/Z_Upgrade_3.07-3.08.php  
  inflating: webERP/Z_Upgrade_3.08-3.09.php  
  inflating: webERP/Z_Upgrade_3.09-3.10.php  
  inflating: webERP/Z_Upgrade_3.10-3.11.php  
  inflating: webERP/Z_Upgrade_3.11-4.00.php  
  inflating: webERP/Z_UploadForm.php  
  inflating: webERP/Z_UploadResult.php  


Move the file to the html location

linuxhelp ~ # ls
webERP  webERP4.14.1.zip
linuxhelp ~ # mv webERP /var/www/html/

Switch to the directory

linuxhelp ~ # cd /var/www/html/
linuxhelp html # ls
index.html  webERP

Change the ownership and permission of the weberp directory

linuxhelp html # chown -R www-data:www-data webERP/ & &  chmod -R 775 webERP/

Create the virtual host for weberp

linuxhelp html # cd /etc/apache2/sites-available/
linuxhelp sites-available # vim web.conf
 
< VirtualHost *:80> 
ServerName www.linuxhelp1.com
DocumentRoot /var/www/html/webERP/
< Directory /var/www/html/webERP/> 
AllowOverride All
Order allow,deny
allow from all
< /Directory> 
< /VirtualHost> 

Enable the web.conf file

linuxhelp sites-available # a2ensite web.conf 
Enabling site web.
To activate the new configuration, you need to run: 
service apache2 reload

Make an entry to the hosts file as follows

linuxhelp sites-available # vim /etc/hosts
< give your ip>    < give your domain name>    

Restart the apache service.

linuxhelp sites-available # systemctl restart apache2.service

Now you can proceed the further installation and configuration from the browser by navigating to the following URL: http://< ipaddress or domain name

Select the language and proceed further

Configure the database settings

Configure the company details and admin account setup

Log in using the admin account credentials

Admin page of webERP

With this, the method to install webERP on linuxmint-18.03 comes to an end.

Tag : Ubuntu
FAQ
Q
How to Change the ownership and permission of the weberp directory?
A
Use the command:
# chown -R www-data:www-data webERP/ & & chmod -R 775 webERP/
Q
How to Download webErp package?
A
Execute the following link:
# wget https://netix.dl.sourceforge.net/project/web-erp/webERP4.14.1.zip
Q
is there any alternative of WebERP?
A
The alternatives are,
GnuCash
Odoo
ERPNext
Q
WebERP should display a default image for each Inventory item, why doesn't this work?
A
Check the permissions on your WebERP directory. All the files should be owned by your webserver. Try: "chown apache.apache /path/to/weberp -R".
Q
What is webERP?
A
WebERP is an open source, web based accounting and business management tool for Small and Medium Enterprises. It supports almost all platforms and is very useful as an online shop or a retail management system for business.