Install ERPNext on Ubuntu 18.04 Server

In this post, we explain to you how to install ERPNext on Ubuntu 18.04 in DigitalOcean, Amazon AWS or any other droplet provider. Before we start installing we have to know about what is ERPNext? ERPNext is a free and open-source integrated web-based ERP software developed by Frappe. ERPNext is used by manufacturers, distributors and services companies. In ERPNext offer large number of Apps like accounting, sales, CRM, purchasing, e-commerce, point of sale, inventory, manufacturing, warehouse, project management and many more. So let’s start how to install ERPNext on Ubuntu 18.04.

Install ERPNext on Ubuntu 18.04

Step 1 Update and Upgrade APT

Update APT list of available packages and their versions. And use upgrade command to actually installs newer versions of the packages.

sudo apt-get update && sudo apt-get upgrade

Step 2 Install Prerequisite

You may have to install Python prerequisite dependencies in order to execute install.py (step 4).

sudo apt-get install python-minimal

Step 3 Download Installation Script

You have to execute following command to fetch ERPNext installation script file.

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

Step 4 Run Installation script (Install ERPNext on Ubuntu 18.04)

Next you have to run the following installation script depending on development or production environment.

  1. For development environment:
    python install.py --develop --user frappe
  2. For production environment:
    python install.py --production --user frappe

Above script will install all the prerequisite, command line bench, create new bench and create new ERPNext site on bench.

While running this script you will asked password for MariaDB root user and Frappe Administrator user.

Please enter mysql root password: 
Re-enter mysql root password: 
Please enter the default Administrator user password: 
Re-enter Administrator password: 
Passwords saved at ~/passwords.txt

Finally, installation is completed you will getting this message,

Frappe/ERPNext has been successfully installed!

Step 5 Start Server

Now you have to login with frappe user and navigate to frappe-bench directory.

sudo su - frappe -s /bin/bash
cd frappe-bench/

Finally, you have to start the server using bench start command.

bench start

Go to your web browser open your server IP address with 8000 port number http://0.0.0.0:8000 and you will see the ERPNext login screen. Here you have to login with username “administrator” and password as per you configured on step 4.

Here you can find list of ERPNext bench command. And you can explore here other ERPNext related posts.


3 Responses Leave a Comment

  1. Great! single command to install everything all.

  2. Hello,

    I have error to install

    “sudo apt-get install -y git build-essential python3-setuptools python3-dev libffi-dev libssl1.0-dev”

    tell me is unable to locate

    1. SpeedySense Editorial September 1, 2019 at 8:12 PM

      You facing issue while you install thru the script. We suggest you to install manually here is the article for manually installation.

Join the Discussion.