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/

 

How to install free SSL (Let’s encrypt) Certificate on Debian server

Let’s Encrypt is a free, automated, and openCertificate Authority. The goal is to implemented the certificate on a web server. I used a standard Debian 7 server with webmin installed. Webmin is a web interface to manage your server. You can find more info here.

First connect to your Webmin interface (usually port 1000):

Click on the left menu and go to webmin configuration:

Click on « SSL Encryption »:

Select the last tab « Let’s encrypt » and enter your full hostmane, like: « server1.example.be » (whithout quote). Select the options below and click on « Request Certificate »:

With the menu, expand the « Servers » items and click on « Apache Webserver »

Select your default Virtual Server with the support of encryption (by default it is the 443 port):

Select « SSL Options » icon and enter the paths below:

Click « Save »  and then « Apply Changes », the apache service will restart and you have now your free certificate on your web server: