How to Install ERPNext on Ubuntu Server Latest

ERPNext is a powerful open-source enterprise resource planning software that helps businesses manage and automate their core business processes. This tutorial will guide you on how to install ERPNext on Ubuntu Server latest using the command line.

Prerequisites

Before we begin, make sure the following prerequisites are met:

Step 1: Update the System

The first step is to update the system packages and dependencies to their latest versions. This can be done by running the following commands:

sudo apt update
sudo apt upgrade -y

Step 2: Install Required Dependencies

ERPNext requires a number of dependencies to be installed before it can be installed and run correctly. Run the following command to install all the required dependencies:

sudo apt install -y python3-minimal build-essential python3-setuptools python3-dev libffi-dev libfreetype6-dev libjpeg8-dev liblcms2-dev libwebp-dev libopenjp2-7-dev zlib1g-dev libtiff5-dev libjpeg-turbo8-dev git libssl-dev redis-server wkhtmltopdf libxml2-dev libxslt-dev libxslt1-dev libssl-dev

Step 3: Install Node.js

ERPNext requires Node.js to be installed in order to run the frontend web interface. This can be done by running the following commands:

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs

Step 4: Install MariaDB Server

ERPNext requires a database server to store and manage data. We will use MariaDB server for this purpose. Run the following commands to install MariaDB server:

sudo apt-get install -y mariadb-server
sudo systemctl start mariadb
sudo systemctl enable mariadb

Once the MariaDB server is installed, you need to secure it by running the following command:

sudo mysql_secure_installation

Step 5: Create MariaDB Database and User

Once the MariaDB server is installed and secured, we need to create a database and user for ERPNext. Run the following commands to log in to the MariaDB server and create a database and user:

sudo mysql -u root -p

Enter the root password when prompted. Then, you can create a new database and user with the following commands:

CREATE DATABASE erpnext;
CREATE USER 'erpnext'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON erpnext.* TO 'erpnext'@'localhost';
FLUSH PRIVILEGES;
exit

Replace the password with a strong password of your choice.

Step 6: Install ERPNext

After all the prerequisites are installed and configured, we can now install ERPNext. Run the following commands to download and install ERPNext:

sudo apt-get install -y git
cd /tmp
sudo git clone https://github.com/frappe/bench.git
cd bench/
sudo ./playbooks/install.py -e production --user frappe --production --bench-name erpnext --verbose

The installation process may take a few minutes to complete. Once it’s completed successfully, you should see the following message:

>> ERPNext has been successfully installed at /home/frappe/frappe-bench

Step 7: Configure ERPNext

ERPNext requires some initial configuration to be done before it can be used. Run the following commands to set up a new site and start the development server:

cd /home/frappe/frappe-bench
sudo bench new-site erpnext.local
sudo bench --site erpnext.local install-app erpnext
sudo bench --site erpnext.local set-config -c "db_name = erpnext"
sudo bench --site erpnext.local install-app erpnext
sudo bench start

Once the development server is started, open your web browser and navigate to http://<server-ip>:8000/. You should see the ERPNext login page.

Congratulations! You have successfully installed and configured ERPNext on Ubuntu Server latest. You can now start using ERPNext to manage and automate your business processes.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!