Installation of ERPNext on Windows

Written by, Ajmal on June 19, 2025

TechFrappe

Codenetic is here.

Install ERPNext on Windows using VirtualBox, Ubuntu Server, and port forwarding.

This guide helps you install ERPNext on Windows using Ubuntu Server via VirtualBox — the most optimized and beginner-friendly approach.

What is ERP & Why ERPNext?

Enterprise Resource Planning (ERP) systems help organizations integrate various business processes across departments. ERPNext is a powerful open-source solution built on the Frappe Framework, but it natively supports only Linux.

If you’re a Windows user, don’t worry — we’ll show you how to run ERPNext using Ubuntu Server in VirtualBox.

Benefits of ERP Systems


Prerequisites


Installation Steps

1. Update System Packages

sudo apt-get update

2. Install Git

sudo apt-get install git

3. Install Python

sudo apt-get install python3-dev python3.10-dev python3-setuptools python3-pip python3-distutils

4. Install MariaDB

sudo apt install mariadb-server mariadb-client

Use SPACE, ARROW, and ENTER keys to handle prompts.

5. Install Redis

sudo apt-get install redis-server

6. Install Dependencies

sudo apt-get install xvfb libfontconfig wkhtmltopdf libmysqlclient-dev

7. Secure MySQL

sudo mysql_secure_installation

Enter details as follows:

8. Update MySQL Config

sudo nano /etc/mysql/my.cnf

Paste:

[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

[mysql]
default-character-set = utf8mb4

Restart:

sudo service mysql restart

9. Install Node, NPM, Yarn

sudo apt install curl
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile
nvm install 16.15.0
sudo apt-get install npm
sudo npm install -g yarn

10. Create ERP Folder

mkdir erp && cd erp

11. Install Frappe Bench

sudo pip3 install frappe-bench

12. Initialize Bench

bench init --frappe-branch version-14 frappe-bench

13. Enter Bench Directory

cd frappe-bench

14. Create a New Site

bench new-site yoursite.local

15. Install ERPNext App

bench get-app --branch version-14 erpnext
bench --site yoursite.local install-app erpnext

✅ ERPNext is now installed!


Access via Windows Browser

16. Enable SSH & Port Access

sudo apt install openssh-server
sudo ufw enable
sudo ufw allow 8000
sudo ufw allow 3306

17. Setup Port Forwarding in VirtualBox

18. Run Frappe Server

bench use yoursite.local
bench start

Open your browser and go to http://localhost:8000.


📊 Final Thoughts

Using this method, you can run ERPNext on any Windows machine using Linux inside VirtualBox. It’s perfect for development, learning, and even lightweight production deployments.

If you want to set up Metabase or PowerBI on top of your ERPNext DB, just make sure port 3306 is open as shown above.

Need help? Drop your questions in the comments or visit codenetic.tech. 🚀

Frappe & ERPNext FAQs

Here are some commonly asked questions about Frappe, ERPNext, and the latest Frappe products.