Tutorial Request: ERPNext Platform

Dear Digital Ocean Contributors!

Please place a detailed and step-by-step guide to install platform from manual installation points of view.

The guys out there are doing good job but it looks like some commits having bad impact on the overall performance.

Please go through and provide clear manual installation guide for the components named Bench, Frappe Framework and ERPNext.

They are calling the last two as Apps based on the 1st one as somehow engine.

Please assume that, non-skilled users like me are looking for installation specific versions of any of the above, in particular Frappe Framework which is not clear out there.

Please consider Ubuntu 14.04, MariaDB, Redis, NodeJS and WKHTMLtoPDF with patched QT.

Assume the source is available for any which is not supposed to be the latest ones.

Thank you!


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It appears that they provide a installer for ERPNext. Based on the documentation available the process would be:

1.) Create a new droplet using Ubuntu 14.04 or CentOS 7

2.) Log into the droplet as root

3.) Run the following:

sudo python --production

According to the official documentation this will:

This script will:

  • Install pre-requisites like git and ansible
  • Shallow clones this bench repository under /usr/local/frappe/bench-repo
  • Runs the Ansible playbook ‘playbooks/develop/install.yml’, which:
  • Installs
    • MariaDB and its config
    • Redis
    • NodeJS
    • WKHTMLtoPDF with patched QT
  • Initializes a new Bench at ~/frappe/frappe-bench with frappe framework already installed under apps.

You will have to manually create a new site (bench new-site) and get apps that you need (bench get-app, bench install-app).

Good day, just attempting this and was wondering if “mysqlpa55w00rd” and “mysqlpa55w00rd” could be anything that I chose?

try from the console: $ bash ./ 8080 testsite

as the is a script text and need to be executable using bash, or make it executable using $ chmod +x so it can be used directly:

$ ./ 8080 testsite

hope this helps, e

Here are the scripts we use to install ERPNext in two steps:

  1. Create a droplet using Ubuntu 16.04 with 1-2GB of RAM and on the fresh console, and then make sure locale and python 3 are installed. Then download the official ansible script from frappe that will then download and install all the requirements for running erpnext. This will install the default site of erpnext. Follow instructions below to install more instances of erpnext on the same VM. We have installed more than 30 on a single droplet and counting.
    sudo locale-gen en_US.UTF-8
    sudo add-apt-repository ppa:jonathonf/python-3.6
    apt-get update
    apt-get install -y python3.6
    echo "frappe ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
    python3.6 --production --user frappe --mysql-root-password mysqlpa55w00rd --admin-password adminpa55w00rd

notes: substitute “mysqlpa55w00rd” and “mysqlpa55w00rd” accordingly

  1. Create a script named
#!/bin/bash -x

cd /home/frappe/frappe-bench
sudo yes y | sudo bench new-site $2  --mariadb-root-password mysqlpa55w00rd --admin-password adminpa55w00rd
sudo yes y | sudo bench set-nginx-port $2 $1
sudo yes y | sudo bench --site $2 install-app erpnext
sudo yes y | sudo bench setup nginx
sudo service nginx reload
sudo yes y | sudo bench setup production frappe

notes: substitute “mysqlpa55w00rd” and “mysqlpa55w00rd” as needed

  1. run the script with the following parameters:
$ port=8080
$ erpname=mysite
$ $erpname $port

where erpname is the name of the site instance and the port 8080 is the port number.

  1. Let the installer finish. The resulting installation is going to be on the droplet ip and the port number like: http://yourdroplet_ip:8080

  2. you could then configure a proxy to handle the ports as subdomains so your erpnext site is easily located as: http://mysite.mydroplet

  3. Enjoy erpnext!!