My Tech-Notes

ERPNext Installation on Ubuntu Guide

A step-by-step guide for installing NextERP / ERPNext on Ubuntu 20.04 LTS (or similar).
If you meant a different ERP, share its official link and I’ll adapt this!


Prerequisites


Update your system

sudo apt update && sudo apt upgrade -y
sudo apt install git curl -y

Install Python & dependencies

sudo apt install python3-dev python3-pip python3-venv -y
sudo apt install software-properties-common -y

Install Node.js & Yarn

# Install Node.js (18.x)
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E ```bash -
sudo apt install -y nodejs

# Install Yarn globally
sudo npm install -g yarn

Install & configure MariaDB

sudo apt install mariadb-server mariadb-client -y
sudo mysql_secure_installation

Create database & user

sudo mysql -u root -p

-- In MariaDB shell:
CREATE DATABASE nexterp;
CREATE USER 'nexterp_user'@'localhost' IDENTIFIED BY 'StrongPassword';
GRANT ALL PRIVILEGES ON nexterp.* TO 'nexterp_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Install Redis

sudo apt install redis-server -y
sudo systemctl enable redis-server
sudo systemctl start redis-server

Install Frappe Bench CLI

sudo pip3 install frappe-bench

Create a new Bench

bench init nexterp-bench --frappe-branch version-15
cd nexterp-bench

Create a new site

bench new-site nexterp.local

Provide DB credentials when prompted.

Get the ERPNext app

bench get-app erpnext --branch version-15

Install the app on your site

bench --site nexterp.local install-app erpnext

Start the server

bench start

Access at: http://localhost:8000

You’re done!

🎉 NextERP / ERPNext is now running!