Installation of ERPNext in UbuntuIn
- General
Installation of ERPNext in UbuntuIn
Introduction
ERPNext is a open-source software used by manufacturers, distributors and services companies, which is built on MariaDB database system using Frappe. Frapper is a python based server-side framework.
ERPnext helps to manage recruitment and employee onboarding and payroll, to assign tasks and follow up on them, to track all invoices and payments, to manage product’s stock availability, to track budgets and spending, and a lot more.
Setting Up ERPNext in Ubuntu 20.4
Step 1:- To make sure that our system is up to date we will run below commands:
1 2 3 |
<em>$ sudo apt update</em> <em>$ sudo apt -y upgrade</em> |
Note:- You should always reboot your system after upgrade.
1 |
<em>$ sudo reboot</em> |
Step 2:- Ensure the installation of all Python build packages required to setup ERPNext.
1 |
<em>$ sudo apt -y install vim libffi-dev python3-pip python3-dev python3-testresources libssl-dev wkhtmltopdf</em> |
Step 3:- To install Curl, Redis and Node.js on Ubuntu, run the commands:
1 2 3 4 5 6 7 8 9 |
<em>$ sudo apt install curl</em> <em>$ sudo curl --silent --location https://deb.nodesource.com/setup_14.x | sudo bash -</em> <em>$ curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null </em> <em>$ echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list </em> <em>$ sudo apt-get update && sudo apt-get install yarn $ sudo apt -y install gcc g++ make nodejs redis-server</em> |
Step 4:- Next step is to Nginx and MariaDB for serving ERPNext and storing database data respectively.
For installation of Nginx on Ubuntu run the coomand:
1 |
<span>$ sudo apt -y <em>install</em> nginx</span> |
For installation of MariaDB server on Ubuntu:
1 |
<span>$ sudo apt install mariadb-server</span> |
Change authentication plugin:–
1 2 3 4 5 |
<span>$ sudo mysql -u root USE mysql; UPDATE user SET plugin='mysql_native_password' WHERE User='root'; UPDATE user SET authentication_string=password('</span><span>your_password</span><span>') WHERE user='root'; FLUSH PRIVILEGES; EXIT;</span> |
Ensure you have the following settings for mysqld and mysql client as provided:
1 2 3 4 5 6 7 8 9 10 |
$ sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf <span>[mysqld] character-set-client-handshake = FALSE character-set-server = utf8mb4 collation_server = utf8mb4_unicode_ci [mysql] default-character-set = utf8mb4 </span> |
1 |
<span>$ sudo systemctl restart mariadb</span> |
Step 5:- Installation of Bench and ERPNext (A bench is a tool used to install and manage ERPNext on your Ubuntu system. We will create a user that will run the ERPNext system, then configure the system)
1 2 3 4 5 |
<span>$ sudo useradd -m -s /bin/bash erpnext </span> <span>$ sudo passwd erpnext </span> <span>$ sudo usermod -aG sudo erpnext</span> |
Update your PATH.
1 2 3 4 5 |
<span>$ sudo su - erpnext </span> <span>$ tee -a ~/.bashrc<<EOF PATH=\$PATH:~/.local/bin/ EOF </span> <span>$ source ~/.bashrc</span> |
Next switch to erpnext user and install the application:
1 2 3 |
$ sudo su - erpnext $ cd /opt/bench |
Install frappe bench and git
1 2 3 |
$ sudo apt install git $ sudo pip3 install frappe-bench |
Initialize the bench directory with frappe framework installed. Make sure you are still inside the /opt/bench directory:
1 |
<span>$ bench init erpnext</span> |
Create a new Frappe site.
1 2 3 |
$ cd erpnext $ bench new-site erp.aurigait.com |
Step 6:- Download the ERPNext application from frappe Github repo. We will get version 13.
1 |
<span>$ bench get-app branch version-13 erpnext https://github.com/frappe/erpnext</span> |
Step 7:- Install ERPNext App on our site
1 |
$ bench new-site erp.aurigait.com install-app erpnext |
Step 8:- Start ERPNext and finish installation.
1 |
$ bench start |
Related content
Auriga: Leveling Up for Enterprise Growth!
Auriga’s journey began in 2010 crafting products for India’s