How to install ERPNext

ERPNext is an ERP tools web based  with lot of features (accounting, stock, project,…)

Before start the installation

Check your ip address

$ ifconfig

Make an update / upgrade

$ sudo apt-get update

$ sudo apt-get upgrade

Installation

Install the requirement for python

$ sudo apt-get install python-minimal

$ sudo apt-get install build-essential python-setuptools

Download the easy installation script

$ wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py

Run the script

$ sudo python install.py –production

How to run the site in HTTPS, with let’s encrypt certificate

Log as frappe user

$ sudo su root

$ sudo su – frappe

Go to folder sites

$ cd frappe-bench/sites

$ mv site1.local erp.drawde.net

Modify

$ nano erp.drawde.net/site_config.json

$ cd ..

$ bench config dns_multitenant on

$ sudo -H bench setup lets-encrypt erp.drawde.net

Error to solved

When you go to the help on ERPNext, you have this error:

To avoid this, you need to migrate the bench framework. With this command:

$ bench –site erp.drawde.net migrate

 

For more details:

https://erpnext.org/

 

Install Webmin via APT

If you like to install and update Webmin via APT on debian.

Edit the file on your system :

/etc/apt/sources.list 

and add the line :

deb http://download.webmin.com/download/repository sarge contrib

You should also fetch and install GPG key with which the repository is signed, with the commands :

cd /root

wget http://www.webmin.com/jcameron-key.asc

apt-key add jcameron-key.asc

You will now be able to install with the commands :

apt-get update

apt-get install apt-transport-https

apt-get install webmin

All dependencies should be resolved automatically.

More info: http://www.webmin.com/deb.html