Guide: Easy Install ERPNext on DigitalOcean Successfully tested

These are the steps on a clean DigitalOcean Droplet (1 GB Memory / 25 GB Disk / LON1 - Ubuntu 16.04.3 x64)

# SSH into the machine
ssh root@machineip

# Prerequisites
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install python-minimal -y
sudo apt-get install build-essential python-setuptools -y

# Adding Frappe User as sudoer and switching into it
sudo adduser frappe
usermod -aG sudo frappe
su frappe
cd /home/frappe/

# Easyinstaller
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo python install.py --develop

NOTE:
As far as I see it if you bench start right after installing it with easy installer it won’t work.

SO, After a bench update and then bench start all seems good.

(Tested by Dominik Ottenbreit)

3 Likes

Hi! Thank you for the brief tutorial. Did you also try migrating an existing app from gcp to digital ocean?

On typing the below command

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

i get the below error message

wget : unable to resolve host address install.py

This Installation steps doesn’t work for me at all. I tried on Ubuntu 16.04 & 18.04. In both cases running install.py - it does few things for some time and eventually the system just goes unresponsive. The only way to recover is to reset the machine.

Try with following steps on Ubuntu 18.04.

SSH into the machine

ssh root@machineip

$ apt install python3-minimal build-essential python3-setuptools

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

$ export LC_ALL=C.UTF-8

$ python3 install.py --production --user frappe_dev

Note: frappe_dev is the new user account

  • The script should then prompt you for the MySQL root password and an Administrator password for the Frappe/ERPNext instance, which will then be saved under HOME/passwords.txt of the user used to setup the instance. This script will then install the required stack, setup bench and a default ERPNext instance.

$ sudo passwd frappe_dev

  • Above command, help to change the password of frappe_dev user

Adding frappe_dev User as sudoer and switching into it

$ usermod -aG sudo frappe_dev
$ su frappe_dev
$ cd ~/frappe-bench

$ bench set-config developer_mode 1
-Above command will enable developer mode

2 Likes