Software Development

How to install Erpnext on Ubuntu


In this blog, we will learn how to install ERPNext on Ubuntu server.

First of all, we will create a new user and provide him with sudo access, we will use this user for all ERPNext related operations. We create a user “webkul”, you can give it any name accordingly.

sudo adduser webkul
usermod -aG sudo webkul

After that, switch to the new user.

su webkul
cd /home/webkul

Before installing ERPNext, we need to install other packages required for Erpnext.

Git

sudo apt-get install git

Python

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

Python virtual environment

sudo apt-get install python3.10-venv

Common software properties

sudo apt-get install software-properties-common

MariaDB (database)

sudo apt install mariadb-server mariadb-client

Redis Server

sudo apt-get install redis-server

Other packages

sudo apt-get install xvfb libfontconfig wkhtmltopdf

MySQL database development files

sudo apt-get install libmysqlclient-dev

Now configure the MariaDB server by running the following command.

sudo mysql_secure_installation

(When you run this command, the server will display the following prompts.)

* Enter current password for root: (Enter your SSH root user password)
* Switch to unix_socket authentication (Y/n): Y
* Change the root password? (Y/n): Y
(It will ask you to set new MySQL root password at this step. This can be different from the SSH root user password.)
* Remove anonymous users? (Y/n) Y
* Disallow root login remotely? (Y/n): N
* Remove test database and access to it? (Y/n): Y
* Reload privilege tables now? (Y/n): Y

Now edit the MySQL configuration file as below.

sudo nano /etc/mysql/my.cnf

Add the following content to it.

(mysqld)

character-set-client-handshake = FALSE

character-set-server = utf8mb4

collation-server = utf8mb4_unicode_ci

(mysql)

default-character-set = utf8mb4

Now restart the DB server

sudo service mariadb restart

LOOP

sudo apt install curl

Node

curl  | bash

source ~/.profile

nvm install 16.15.0

MNP

sudo apt-get install npm

Thread

sudo npm install -g yarn

Frappe Bench (Bench is a CLI tool for managing Frappe applications)

sudo pip3 install frappe-bench

Initialize the Frappe bench

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

Switch to the Frappe Bench directory

cd frappe-bench

Create a new site

(A site is required in ERPNext.)

bench new-site demo

bench use demo

Now install ERP Next

bench get-app --branch version-14 erpnext

bench --site demo install-app erpnext

bench start

NEED HELP?

I hope you find the guide useful! Please feel free to share your thoughts in the comments below.

If you still have any issues/questions regarding ERPNext installation on Ubuntu server, please create a ticket at https://webkul.uvdesk.com/en/customer/create-ticket/.

Please also explore our Odoo development services and a wide range of quality Odoo apps..

For any doubts, contact us at (email protected).

Thank you for your attention !!



Source link

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button