Skip to main content

Deploy ERPNext-15 & app on the Linux server

Frappe-ERPNext InstallationVersion-15 Guidein Ubuntu 22.04 LTS

In your System you have to -

Steps to Install python 3.11.xx

Note: If you are using ubuntu 23.xx or latest  the default python version is 3.11.xx. So you can skip the python 3.11 installation steps

First, import the Python repository with the most up-to-date stable releases.

  sudo add-apt-repository ppa:deadsnakes/ppa -y
  sudo apt update

install Python 3.11 by executing the following command in your terminal:

  sudo apt install python3.11

  python3.11python3 --version

To install all the extras in one go, run the following command.

  sudo apt install python3.11-full

STEP 1 Install git

sudo apt-get install git

STEP 2 install python-dev

sudo apt-get install python3-dev

STEP 3 Install setuptools and pip (Python's Package Manager).

sudo apt-get install python3-setuptools python3-pip
STEP 4 Install virtualenv
sudo apt install python3.11-venv

STEP 5 Install MariaDB

sudo apt-get install software-properties-common
sudo apt install mariadb-server
sudo mysql_secure_installation


  In order to log into MariaDB to secure it, we'll need the current
  password for the root user. If you've just installed MariaDB, and
  haven't set the root password yet, you should just press enter here.

  Enter current password for root (enter for none): # PRESS ENTER
  OK, successfully used password, moving on...
  
  
  Switch to unix_socket authentication [Y/n] Y
  Enabled successfully!
  Reloading privilege tables..
   ... Success!

  Change the root password? [Y/n] Y
  New password: 
  Re-enter new password: 
  Password updated successfully!
  Reloading privilege tables..
   ... Success!

  Remove anonymous users? [Y/n] Y
   ... Success!

   Disallow root login remotely? [Y/n] Y
   ... Success!

   Remove test database and access to it? [Y/n] Y
   - Dropping test database...
   ... Success!
   - Removing privileges on test database...
   ... Success!

   Reload privilege tables now? [Y/n] Y
   ... Success!

STEP 6 MySQL database development files

sudo apt-get install libmysqlclient-dev

STEP 7 EditCheck theDataBase mariadb configuration ( unicode character encoding )Command

sudo nanomysql /etc/mysql/mariadb.conf.d/50-server.cnf-u root -p

Now press (Ctrl-X) to exit

sudo service mysql restart

STEP 8 install Redis

sudo apt-get install redis-server

Check node version using command -  node  -v
Check nvm version using command -  nvm  -v

If your node version is less then 20 then -
Go to  --> https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04

Go to option no.3 and run command in terminal  --> curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

source ~/.bashrc

nvm list-remote

nvm install v20.17.0

Now check node Version will be v20.1710

STEP 9 install Node.js 18.X package
sudo apt install curl 
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile
nvm install 18
STEP 10 install Yarn
sudo apt-get install npm

sudo npm install -g yarn --force
STEP 1110 install wkhtmltopdf
sudo apt-get install xvfb libfontconfig wkhtmltopdf
STEP 1211 install frappe-bench
sudo -H pip3 install frappe-bench

bench --version
STEP 1312 initilise the frappe bench & install frappe latest version
bench init frappe-bench --frappe-branch version-15 --python python3.11

cd frappe-bench/
bench start
STEP 1413 Open New Terminal & run this cmd to create a site in frappe bench
bench new-site dcode.com

bench get-app https://github.com/frappe/erpnext --branch version-15

bench --site dcode.com add-to-hostsinstall-app erpnext

Note - if it gives you error erpnext is not installed then uninstall it by - bench --site dcode.com uninstall-app erpnext
and reinstall it by bench --site dcode.com install-app erpnext

STEP

Open14 urlCheck http://dcode.com:8000the site you have to loginrun

STEP 15 install ERPNext latest version in bench & site

bench inituse frappe-benchdcode.com
--frappe-branch

Now version-15go --pythonto python3.12your cdprevious frappe-bench/terminal exit the bench by ctrl + c and run bench start cmd.

When you have to stop the bench or redis server do not forgot to run below commands -

sudo systemctl stop redis

sudo service redis-server stop

STEP 16 create a site in frappe bench 

bench new-site techradixsite.com

STEP 17 Install apps according to your need from your github or gitlab repositories

bench get-app git@git.radixforce.com:enterprise/erpnext.git --branch erpnext
bench --site radixsite.com install-app erpnext

bench get-app hrms git@git.radixforce.com:enterprise/hrms.git --branch hrms
bench --site radixsite.com install-app hrms

bench get-app chatbot git@git.radixforce.com:enterprise/chatbot.git --branch chat
bench --site radixsite.com install-app chat

bench get-app doppiobot  git@git.radixforce.com:enterprise/doppiobot.git  --branch doppio
bench --site radixsite.com install-app doppio_bot

bench start