Preparing Ubuntu 20+ server for ERPNext and Frappe Version 14

If your server is Ubuntu 20+ and you are unable to upgrade the server to 22+, please use this document to prepare server for ERPNext Version 14.

 · 2 min read

How to Install and Use Kubernetes on Ubuntu 20.04 • CloudSigma


The video version of this document is available on https://youtu.be/9S3APcmAql8 , where we are explaining the concept and procedures in details


( commands are in blue letters )


Note: You need NOT upgrade Ubuntu from 20+ to 22+ for installing ERPNext Version 14. EPRNext and Frappe 14 works both on Ubuntu 20+ and 22+ )


1- Take backup. ( Should I explain that !!! )


2-Check python version

python3 -V

Python 3.8.10 ( needs to be upgraded to 3.10 )


3-check node version.

node --version

v12.22.12 ( needs to be upgraded to v16.X )


4-Check pip or pip3 version

pip3 --version

20.2 ( needs to be upgrade to 22.x )



5- Upgrade python

sudo apt install software-properties-common -y

sudo add-apt-repository ppa:deadsnakes/ppa

sudo apt install python3.10 python3.10-dev python3.10-distutils


Confirm python version upgrade by

python3.10 --version

Python 3.10.6


Make Python 3.10 the default.

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1


Make sure python command executes python3

sudo apt install python-is-python3


python -V

Python 3.10.6


python3 -V

Python 3.10.6



7 - Upgrade PIP

curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10

pip3 install --upgrade pip

sudo apt-get remove python3-apt -y

sudo apt-get install python3-apt -y


check PIP verison and confirm.

pip --version

pip 22.2.2 from /home/erpnext/.local/lib/python3.10/site-packages/pip (python 3.10)

pip3 --version

pip 22.2.2 from /home/erpnext/.local/lib/python3.10/site-packages/pip (python 3.10)


8- Upgrade Node

curl -sL https://deb.nodesource.com/setup_16.x | bash -

apt-get install nodejs redis-server -y


check node version and confirm

node --version

v16.17.0


9- Upgrade NPM

npm upgrade

sudo npm install 16

sudo npm install -g npm@8.19.1


check npm version and confirm

npm --version

8.19.1



That is it. Now you are ready to install ERPNext or Frappe Version 14. Please follow our document on installing the same.



-------------

If you face problem with nginx because of log type error ( log type main not found or something like that )

vvim /etc/nginx/nginx.conf and add following on http section.


log_format main '$remote_addr - $remote_user [$time_local] "$request" '

           '$status $body_bytes_sent "$http_referer" '

           '"$http_user_agent" "$http_x_forwarded_for"';

-----------------------






Team ERPGulf

The team behind ERPGulf blogs here, expresses their thoughts, shares the experience, often show the frustrations. Contact us on support@ERPGulf.com

Add a comment
Ctrl+Enter to add comment

C
Shijin 3 years ago

For some commands, you need to login as root user for this to work.

J
Junaid Hussain 3 years ago

if you stuck at this command

sudo apt install python-is-python3

and get error unable to locate package python-is-python3

please run these commands sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10 sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 9 sudo update-alternatives --config python

and choose select 2 Probably it Python 3 would be already by default but press 2 now check

python -V it should show Python 3.10.6 or above

python3 -V it should show Python 3.10.6 or above

then continue installation on number 7