Business software

Install ERPNext on Ubuntu with Frappe Bench (Step by Step)

Install Frappe Bench and ERPNext on Ubuntu, create your first site, and learn which setup is for development and which is for production, using Frappe's own documentation.

By EpiFive Editorial TeamReviewed/updated 10 min readHow we check our guides

This article contains affiliate links. If you buy through them, EpiFive may earn a commission at no extra cost to you. Details.

On this page

To install ERPNext on Ubuntu you install the Frappe Bench command-line tool, create a bench (a folder that holds the Frappe framework and your apps), create a site, and add the ERPNext app to that site. Frappe documents this bench route mainly for development; for production it recommends Docker instead, and this guide shows both so you can choose.

Who this is for and what you will have at the end

This guide is for IT administrators, developers, consultants and technical small-business owners who want to run ERPNext on a server or workstation they control. It also suits students who want a local copy to practice on. You need comfort with a Linux shell and sudo.

At the end you will have:

  • The prerequisites for your Frappe version installed on Ubuntu.
  • A working bench with a site named erpnext.localhost.
  • ERPNext installed on that site and reachable in a browser.
  • A clear picture of the production options Frappe documents, and the warnings that come with them.

If you are still deciding whether ERPNext is the right system, read ERPNext vs Odoo for a small manufacturer first. If you want the same exercise for the other open-source ERP, see Odoo on Ubuntu, step by step. For the work that surrounds an install, ERP implementation phases and timeline covers it.

Choose your route first

Frappe's documentation offers several ways to get ERPNext running. They are not interchangeable.

RouteBest forWhat Frappe says
Frappe CloudTeams that do not want to run serversHosted option that handles installation, upgrades and monitoring
Docker (frappe_docker)Self-hosted productionThe bench README and the production guide both point to Docker for production
Bench on Ubuntu (this guide)Development, learning, customizingDocumented in the installation page; bare-metal production is not recommended
Docker pwd.yml demoA quick lookLabelled "Disposable demo only"; you cannot install custom apps into it

ERPNext itself is free: the repository is under the GPL-3.0 license, and the ERPNext pricing page says you can host it yourself and "pay us absolutely nothing for running it and managing it on your own." Your real costs are the server, backups and the person who maintains it.

Prerequisites

Frappe's installation page supports macOS and Debian/Ubuntu, and notes that Debian 13+ or Ubuntu 24.04+ is needed for some packages. Windows users can use Ubuntu under WSL. The versions depend on which Frappe release you run:

ComponentVersion 14 and 15Version 16 and develop
Python3.11+3.14
Node.js18+24
MariaDB10.6.6+11.8
Redis or Valkey66+
Yarn1.12+1.22+
pip20+25.3+

The page also lists Chromium (bench downloads it for PDFs; you can fetch it early with bench setup-chrome) and cron for scheduled jobs. It names Chromium for PDF generation rather than wkhtmltopdf, so the page does not ask you to install wkhtmltopdf. If you run an older release, check that release's own documentation.

This guide follows the version 16 column, because it is the one Frappe's page shows in its commands. Substitute your own version's numbers if you run 14 or 15, and use the ERPNext branch that matches your Frappe branch.

Step 1: Install system packages

Update the server, then install the packages Frappe lists for Debian/Ubuntu:

sudo apt update
sudo apt install git redis-server libmariadb-dev mariadb-server mariadb-client pkg-config
sudo mariadb-secure-installation

mariadb-secure-installation walks you through setting the database root credentials and removing test defaults. Do not skip it on any machine that other people can reach.

One caution: the Ubuntu repository's MariaDB may be older than the version your Frappe release needs. Run mariadb --version and compare it with the table above before you go further. If it is lower, install MariaDB from the vendor's repository for the required series rather than forcing bench to work with an old server.

Step 2: Install Node.js and Yarn

Frappe's page uses nvm (the Node Version Manager) for Node:

nvm install 24
node -v
npm install -g yarn

If nvm is not installed yet, install it from its own project page first. For version 14 or 15, install Node 18 or later instead of 24. Confirm with node -v that the version printed matches your column.

Step 3: Install Python and bench

The page installs Python with uv and then installs the bench tool with uv:

uv python install 3.14 --default
uv tool install frappe-bench
bench --version

The bench README documents a different, pip-based route (pip install -U frappe-bench) for the PyPI release. Either way, the check is the same: bench --version must print a version number. If the shell says bench: command not found, the directory where your installer puts command-line tools is not on your PATH; open a new terminal or add it.

Step 4: Create the bench

A bench is a folder holding the framework, your apps and your sites. Create one:

mkdir ~/frappe
cd ~/frappe
bench init my-bench
cd my-bench

bench init downloads the Frappe framework and builds its assets, so it takes a while and needs internet access. The README gives the general form as bench init [bench-name].

Step 5: Create a site and install ERPNext

The ERPNext README gives these steps. Start the bench in one terminal:

bench start

Frappe's README labels bench start as for development only. In a second terminal, from inside the bench folder, create a site:

bench new-site erpnext.localhost

Then fetch the ERPNext app and install it on the site:

bench get-app https://github.com/frappe/erpnext
bench --site erpnext.localhost install-app erpnext

Open http://erpnext.localhost:8000/app in your browser. That is the address the ERPNext README gives for a local site. The site is on port 8000 because bench start serves development traffic there.

When bench new-site runs, it asks for the details it needs to create the site's database and the Administrator account. Use a strong Administrator password and store it in a password manager. Never reuse the demo credentials described below.

If you need a specific release rather than the default branch, pass the branch you want to bench get-app and make sure it matches your Frappe version. The README documents the plain form above, so check the repository's branch list before you choose.

Step 6: Decide how to run it in production

This is where many guides go wrong, so read Frappe's own warning. The production guide says: "We DO NOT recommend installing on bare metal servers." It recommends Docker images for production, and the bench README also recommends Docker.

Option A: Docker

The ERPNext README points to the Frappe Docker documentation for self-hosted production, with these prerequisites: Docker, Docker Compose v2 and git. The quick demo it shows is:

git clone https://github.com/frappe/frappe_docker
cd frappe_docker
docker compose -f pwd.yml up -d

Wait a couple of minutes, then open port 8080. The README gives the login as Administrator with the password admin. The same page calls this a "Disposable demo only" setup in which you cannot install custom apps. Treat it as a way to look around, not as a deployment. For a real deployment follow the Frappe Docker documentation, which is a separate guide.

Option B: Bench with Supervisor and nginx

If you still choose a bench-based production server, the guide documents an automated command:

sudo bench setup production

or the manual route:

bench setup supervisor
sudo ln -s `pwd`/config/supervisor.conf /etc/supervisor/conf.d/frappe-bench.conf
bench setup nginx
sudo ln -s `pwd`/config/nginx.conf /etc/nginx/conf.d/frappe-bench.conf

After each symlink, reload Supervisor or nginx so the new configuration takes effect. You need Supervisor and nginx installed and sudo access; the generated files are config/supervisor.conf and config/nginx.conf. To let the bench restart its processes after app updates, the guide gives:

sudo bench setup sudoers $(whoami)

Without that, the guide says the bench cannot restart Supervisor-managed processes when you update apps. Production also needs a real domain, HTTPS and backups; the production page does not cover certificates, so use your usual certificate process and test it.

Verification checklist

Run through this list before you call the install done:

  1. bench --version prints a version.
  2. node -v and mariadb --version match the table for your Frappe version.
  3. bench start runs without a stack trace.
  4. http://erpnext.localhost:8000/app loads and you can sign in as Administrator.
  5. The ERPNext app appears in the site's app list after install-app.
  6. For production, the site loads on port 80 or 443 through nginx, not on port 8000.

Troubleshooting

SymptomLikely causeFix
bench: command not foundThe tool's install folder is not on PATHOpen a new shell or add the folder to PATH, then run bench --version
bench init fails during asset buildWrong Node.js or Yarn version for your Frappe branchCompare node -v with the table and reinstall the correct Node version
Database connection or authentication errors on bench new-siteMariaDB root credentials not set or wrongRe-run sudo mariadb-secure-installation and use the credentials you set
nginx will not restart after bench setup nginxAnother config holds a default server block on port 80The production guide says to disable it in /etc/nginx/conf.d/default.conf, /etc/nginx/conf.d/default or /etc/nginx/sites-available/default
Apps do not restart after an updateThe sudoers entry is missingRun sudo bench setup sudoers $(whoami)
Site does not open in the browserbench start is not running, or the site name does not resolveStart the bench and check the address you typed

If a step fails with a message not listed here, read the full error and search for it in the Frappe documentation and forum before changing anything. Do not delete the bench folder as a first move; it holds your site files.

Keep it safe

  • Back up the sites folder and the database before every upgrade, and test a restore on another machine.
  • Keep ERPNext and Frappe on matching versions; do not mix a version 15 framework with a newer app branch.
  • Do not expose development mode to the internet.
  • Change every default credential. The demo login in pwd.yml is public knowledge.

What we checked

  • Opened Frappe's installation page (docs.frappe.io) on 2026-11-29 and copied the prerequisite table for versions 14/15 and 16/develop, the Debian/Ubuntu package command, and the bench commands. The page names Debian 13+ or Ubuntu 24.04+ for some packages.
  • Opened the ERPNext GitHub README on 2026-11-29 and checked the bench get-app, bench --site ... install-app and http://erpnext.localhost:8000/app steps, the GPL-3.0 license, and the Docker demo notes (pwd.yml, port 8080, "Disposable demo only").
  • Opened the Frappe Bench README on 2026-11-29 and cross-checked the command forms (bench init, bench new-site, bench get-app, bench start "only for development") and its recommendation of Docker for production.
  • Opened the bench production setup guide on 2026-11-29 and quoted its warning about bare-metal installs, the sudo bench setup production command, the Supervisor and nginx steps and the default-server-block caveat.
  • Opened the ERPNext pricing page on 2026-11-29 and confirmed the GPL-3.0 and self-hosting statements.
  • Not checked: the exact prompts printed by bench new-site, the Docker production guide, and certificate setup, because the pages opened did not cover them. Not run on a live Ubuntu server; steps follow Frappe's documentation as of 2026-11-29.

Last tested: 2026-11-29

References

Questions people ask

How do I install ERPNext on Ubuntu?

Install the prerequisites (git, Redis, MariaDB, Node.js, Yarn, Python), install the bench command, run bench init to create a bench, create a site with bench new-site, then fetch and install the ERPNext app with bench get-app and bench install-app. Start it with bench start for development.

Is ERPNext free?

Yes. The ERPNext repository is licensed under GPL-3.0 and the ERPNext pricing page says you can host it yourself and pay Frappe nothing for running it. Frappe Cloud, the hosted option, is a paid service with plans that start at a listed monthly price.

Does Frappe recommend installing ERPNext on a bare-metal server for production?

No. The bench production guide says "We DO NOT recommend installing on bare metal servers" and recommends Docker images for production. The bench-based steps in that guide (Supervisor, nginx) are documented for those who still choose them.

Which Python, Node.js and MariaDB versions does Frappe Bench need?

Frappe's installation page lists Python 3.11+, Node.js 18+ and MariaDB 10.6.6+ for versions 14 and 15, and Python 3.14, Node.js 24 and MariaDB 11.8 for version 16 and the develop branch. Check the page for your version before you install.

ERPNextFrappe BenchUbuntuMariaDB