Frappe Cloud Support Partners Foundation Frappe School

ERPNext installation on ubuntu 18.04 and MultiSite on

Make sure you’ve fresh installed 18.04

sudo su

apt update && apt install python-minimal build-essential python-setuptools -y

wget (this will download a python file which includes all setup materials and while you run,it will setup environment at once)

adduser [user]

usermod -aG sudo [user] (this will grant sudo permission to that user)

export LC_ALL=C.UTF-8

Restart PC

python --production --user --verbose (this command will run the file. and with the help of --verbose you can see the setup procedure in front of you. Means, whats going on)

!Importent: type ‘y’ and press enter when ask for your confirmation about

"It is recommended to run this script with python 3,

Do you still wish to continue?[y/n]:"

su [user]


cd frappe-bench

sudo bench setup production [user] (after this process finished, you can see the port number assigned for your site)

give yes to all warnings

open your browser and try localhost:

for multi site add

bench config dns_multitenant on

bench new-site

bench --site install-app erpnext

bench new-site

bench --site install-app erpnext

bench setup nginx

Got an error When run this Script:-

Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-dnf6t2uq/cryptography/”, line 14, in
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named ‘setuptools_rust’

        =============================DEBUG ASSISTANCE==========================
        If you are seeing an error here please try the following to
        successfully install cryptography:

        Upgrade to the latest pip and try again. This will fix errors for most
        users. See:
        =============================DEBUG ASSISTANCE==========================


Command “python egg_info” failed with error code 1 in /tmp/pip-build-dnf6t2uq/cryptography/
Traceback (most recent call last):
File “”, line 436, in
File “”, line 143, in install_prerequisites
‘python3’: “sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip”
File “”, line 118, in run_os_command
returncode = subprocess.check_call(command, shell=True, stdout=log_stream, stderr=sys.stderr)
File “/usr/lib/python2.7/”, line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip’ returned non-zero exit status 1

It may help you.

Can multisite applied to Ubuntu 20.04?

Yes. There is no difference in the configuration, but there may be other issues with attempting to get erpnext running of Ubuntu 20.04

There are already several threads here on the forum on this subject. They are worth reading before you embark on v20.04


1 Like