Short answer: you can self-host ERPNext for free on a single Linux server. For a small business with up to roughly 25 users, a VPS with 2 vCPU and 4–8 GB of RAM running Ubuntu 24.04 LTS is a practical starting point. ERPNext v16 needs MariaDB 11.8, Python 3.14, Node.js 24 and Redis 6+. A careful first installation takes an afternoon; the real cost is the hours you spend on updates, backups and security every month afterwards.
This guide is written for small-business owners and the one “IT person” who usually ends up running the system. It covers what ERPNext is, the exact server requirements, a step-by-step installation, production hardening, backups, a realistic cost model, and the mistakes we see most often. If you are still choosing between platforms, read our Odoo vs ERPNext comparison for small businesses first, and use the self-hosted ERP cost calculator to check the numbers for your own team.
What is ERPNext?
ERPNext is an open-source enterprise resource planning (ERP) system developed by Frappe Technologies and an active contributor community. It is built on the Frappe Framework, a full-stack framework written in Python and JavaScript, and stores its data in MariaDB. The source code is published on the ERPNext GitHub repository under the GNU GPLv3 licence, which means there is no paid “enterprise edition” hiding the useful modules: everything in the product is available to self-hosters.
Out of the box, ERPNext covers the core operations a small business needs:
- Accounting: chart of accounts, invoices, payments, bank reconciliation, taxes (including GST templates for India) and financial statements.
- Selling and CRM: leads, opportunities, quotations, sales orders and customer records.
- Buying and inventory: purchase orders, suppliers, multi-warehouse stock, batches and serial numbers.
- Manufacturing: bills of materials, work orders, job cards and production planning.
- Projects, HR and payroll: timesheets and tasks, with HR and payroll in the separate Frappe HR app.
- Website and e-commerce: a built-in website builder and webshop connected to your item catalogue.
The current major release line is version 16, which Frappe positions as its most stable and secure release so far. Version 15 is still widely deployed and supported, so the requirements below cover both.
Why self-host instead of using the cloud?
Frappe sells managed hosting (Frappe Cloud), and many partners offer hosted ERPNext. Self-hosting means you run the software on a server you control, either a rented VPS or a machine in your office. The trade-off is simple: you swap a monthly subscription for responsibility.
| Factor | Self-hosted ERPNext | Managed / SaaS ERP |
|---|---|---|
| Licence cost | Free (GPLv3) | Usually per user, per month |
| Data location | Your server, your country, your backups | Provider’s infrastructure |
| Customisation | Unlimited: custom apps, scripts, direct DB access | Limited to what the plan allows |
| Updates and security | Your job | Provider’s job |
| Uptime | Depends on your setup and monitoring | Covered by an SLA |
| Best for | Teams with a technical person and cost pressure | Teams that want zero server work |
Self-hosting tends to win when you have more than a handful of users (per-user pricing grows quickly), when you need deep customisation, or when you have a legal or contractual reason to keep financial data on infrastructure you choose. It tends to lose when nobody on the team is comfortable with a Linux command line.
ERPNext server requirements (v15 and v16)
The software dependencies come straight from the official Frappe installation documentation. Version 16 raised the minimums significantly, so check which branch you are installing before you build the server:
| Dependency | ERPNext / Frappe v15 | ERPNext / Frappe v16 |
|---|---|---|
| MariaDB | 10.6.6+ | 11.8 |
| Python | 3.11+ | 3.14 |
| Node.js | 18+ | 24 |
| Redis / Valkey | 6 | 6+ |
| Yarn | 1.12+ | 1.22+ |
| pip | 20+ | 25.3+ |
| cron | Required for scheduled jobs such as backups and certificate renewal | |
Frappe does not publish a single official hardware minimum for a whole production server, so the sizing below is our practical recommendation for a single-server install where the database, Redis, web workers and background workers all share one machine:
| Team size | vCPU | RAM | Disk (SSD) | Notes |
|---|---|---|---|---|
| Trial / 1–5 users | 2 | 4 GB + 2 GB swap | 40 GB | Fine for evaluation and very light use |
| 5–25 users | 2–4 | 8 GB | 80 GB | Comfortable for a typical small business |
| 25–75 users | 4–8 | 16 GB | 160 GB+ | Consider moving MariaDB to its own server |
Use a long-term-support operating system. For v16, Ubuntu 24.04 LTS or Debian 12 or later are the safe choices. Do not install two ERPNext major versions on the same server: their ports, Python environments and process managers will conflict.
How to install ERPNext on Ubuntu 24.04 (step by step)
The commands below install ERPNext v16 with the bench command-line tool on a fresh Ubuntu 24.04 server. Replace erp.example.com with your own domain and point its DNS A record at the server before step 8. If you prefer containers, the official frappe_docker project is the alternative route for production.
Step 1: Create a dedicated user
Never run bench as root. Create a normal user with sudo rights and log in as that user.
sudo adduser frappe
sudo usermod -aG sudo frappe
su - frappeStep 2: Install system packages
sudo apt update && sudo apt upgrade -y
sudo apt install -y git curl cron redis-server pkg-config \
libmariadb-dev build-essential xvfb libfontconfigStep 3: Install MariaDB 11.8
Ubuntu 24.04 ships an older MariaDB, so add the official MariaDB repository for the 11.8 series, then secure the installation.
curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | \
sudo bash -s -- --mariadb-server-version="mariadb-11.8"
sudo apt install -y mariadb-server mariadb-client
sudo mariadb-secure-installationFrappe needs the utf8mb4 character set. Create /etc/mysql/mariadb.conf.d/99-frappe.cnf:
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
[mysql]
default-character-set = utf8mb4Then restart it with sudo systemctl restart mariadb.
Step 4: Install Python 3.14 with uv
curl -LsSf https://astral.sh/uv/install.sh | sh
source ~/.bashrc
uv python install 3.14 --default
python3 --versionStep 5: Install Node.js 24 and Yarn
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
source ~/.bashrc
nvm install 24
npm install -g yarn
node --version && yarn --versionStep 6: Install bench and create a bench
uv tool install frappe-bench
bench --version
bench init frappe-bench --frappe-branch version-16 --python python3.14
cd frappe-benchStep 7: Create a site and install ERPNext
bench new-site erp.example.com
bench get-app --branch version-16 erpnext
bench --site erp.example.com install-app erpnext
bench --site erp.example.com enable-schedulerOptional: add Frappe HR with bench get-app --branch version-16 hrms, then install it on the site the same way.
Step 8: Switch to production mode and add HTTPS
sudo env PATH="$PATH" bench setup production frappe
bench config dns_multitenant on
sudo env PATH="$PATH" bench setup lets-encrypt erp.example.comProduction mode puts Nginx in front of the app and uses Supervisor to keep the web server, workers and scheduler running. Open https://erp.example.com, log in as Administrator and run the setup wizard: company, currency, fiscal year and chart of accounts.
Alternative: install ERPNext with Docker
Frappe’s own documentation points production and container-based setups to the official frappe_docker project. The Docker route packages the web server, workers, scheduler, Redis and database as separate containers defined in a Compose file. It has three advantages: the host operating system stays clean, upgrades become “pull a new image and migrate”, and the same stack runs identically on a laptop and on the server. The cost is another layer to understand. Volumes, container networking and image builds replace bench commands for many tasks, and custom apps must be baked into your own image.
As a rule of thumb, choose bench on a VPS if you are learning ERPNext and want to see every moving part. Choose Docker if your team already runs containers, or if you plan to host several ERPNext sites or other services on the same machine.
Production hardening checklist
A fresh install works, but it is not yet safe to put real invoices into. Work through this list before go-live:
- Firewall: allow only SSH, HTTP and HTTPS, for example with
ufw allow OpenSSH,ufw allow 80,443/tcpandufw enable. - SSH: key-based login only. Set
PasswordAuthentication noandPermitRootLogin noinsshd_config. - Automatic security updates: install and enable
unattended-upgradesfor operating-system patches. - Strong Administrator password and two-factor authentication: enable 2FA in System Settings for all users with financial access.
- Roles and permissions: give each employee only the roles they need. Avoid sharing the Administrator account.
- Swap: on 4 GB servers, add 2 GB of swap so asset builds and updates do not crash with out-of-memory errors.
- Monitoring: at minimum, an external uptime check and a disk-space alert. A full disk is the most common cause of a “suddenly broken” ERPNext.
- Email: configure an outgoing email account with SPF and DKIM so invoices and password resets do not land in spam.
Backups and updates
Your ERP holds your accounts. Treat backups as non-negotiable and test that they restore.
ERPNext can back up a site’s database and attached files with one command:
bench --site erp.example.com backup --with-filesBackups are written to sites/erp.example.com/private/backups. Follow the 3-2-1 rule: three copies, on two kinds of storage, with one off the server. A nightly cron job that syncs that folder to object storage, plus the provider’s weekly server snapshot, is a sensible minimum. Once a quarter, restore a backup to a test server with bench --site test.local restore <database-backup-file>. A backup that has never been restored is a hope, not a backup.
For updates, stay on your major version and apply minor updates monthly:
bench --site erp.example.com backup --with-files
bench updateTreat a major upgrade (for example v15 to v16) as a project: clone production to a staging server, upgrade there, test your key workflows and custom scripts, and only then repeat on production.
What self-hosting ERPNext really costs
The software is free; running it is not. A realistic yearly budget has five lines:
| Cost item | What drives it | How to keep it low |
|---|---|---|
| Server (VPS) | RAM and CPU needed for your user count | Start with 4–8 GB and resize when monitoring shows pressure |
| Backup storage | Database size, attachments, retention period | Compress, keep 30 daily and 12 monthly copies |
| Domain, TLS and email | Domain renewal; TLS is free with Let’s Encrypt | Use an existing business domain and email provider |
| Implementation | Data migration, configuration, training | Migrate opening balances, not years of history |
| Administration time | Updates, monitoring, user support | Automate backups and updates; document every change |
A worked example. Consider a distributor with 12 ERP users: four in accounts, five in sales and three in the warehouse. A 2 vCPU / 8 GB VPS covers this load with headroom for month-end reporting. Nightly backups of a database of a few gigabytes, kept for 30 days, fit in low-cost object storage. Implementation is the biggest one-off: importing about 2,000 items, 300 customers and opening balances, setting up GST templates and print formats, and training staff is realistically 40–60 hours. After go-live, a monthly cycle of “check backups, apply the minor update, review error logs and disk usage” takes two to four hours. Write these numbers down for your own business before comparing any quote, because they turn “free software” into a budget you can defend.
Administration time is the line most teams underestimate. Even two to four hours a month, valued at your team’s real hourly cost, can be larger than the server bill. Our self-hosted ERP cost calculator compares a three-year self-hosted budget with a per-user SaaS subscription using your own numbers, and shows the user count at which self-hosting starts to pay off.
Using ERPNext’s website and webshop
ERPNext includes a website module and webshop that publish your item catalogue straight from inventory. This is convenient, but a public site has to be found before it can sell. Give every product and category page a unique title and description, keep URLs short and readable, publish a sitemap and link related pages together. These basics of technical SEO and search visibility apply to an ERPNext webshop as much as to any WordPress site. Keep the ERP login on its own subdomain (for example erp.example.com) and put the public site on your main domain. Search engines then only see the pages you mean to publish, and the ERP stays behind your login.
Common mistakes to avoid
- Under-sizing RAM. Builds and updates fail on 2 GB servers. Start at 4 GB with swap.
- Running bench as root. It breaks file permissions and weakens security. Use a dedicated user.
- Mixing versions. Installing v16 apps on a v15 bench, or two benches on one server, causes dependency conflicts.
- Skipping restore tests. Discovering a corrupt backup on the day you need it is the worst possible timing.
- Editing core code. Put customisations in a custom app, Custom Fields or Server Scripts, so updates do not overwrite them.
- Migrating everything. Importing ten years of transactions slows go-live. Bring in masters and opening balances, and archive the rest.
ERPNext self-hosting FAQ
Is ERPNext free to self-host?
Yes. ERPNext is open source under the GPLv3 licence, and every module is included. You pay only for your server, backups, domain and the time needed to run it.
What are the minimum server requirements for ERPNext?
For v16 you need MariaDB 11.8, Python 3.14, Node.js 24 and Redis 6+. For hardware, plan on at least 2 vCPU and 4 GB of RAM with swap for a small team, and 8 GB for comfortable everyday use.
Can I install ERPNext on Windows?
Not directly. Frappe supports Linux and macOS. On Windows, use WSL2 for testing, or Docker with the official frappe_docker setup. For production, use a Linux server.
How long does an ERPNext installation take?
A clean install on a prepared Ubuntu server usually takes one to three hours. Configuring masters, importing data and training users takes days to weeks, depending on the business.
Should I choose ERPNext or Odoo for self-hosting?
ERPNext gives you every module under one open-source licence. Odoo Community is also open source, but several popular features exist only in the paid Enterprise edition. See our Odoo vs ERPNext comparison for a full breakdown.
Next step: estimate your budget with the ERP cost calculator, or go back to the self-hosted ERP guides home for more articles.