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 https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py (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 install.py --production --user --verbose (this command will run the install.py 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

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 erp.newsite1.com

bench --site erp.newsite1.com install-app erpnext

bench new-site erp.newsite2.com

bench --site erp.newsite2.com 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/setup.py”, 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: https://pip.pypa.io/en/stable/installing/#upgrading-pip
        =============================DEBUG ASSISTANCE==========================


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

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-dnf6t2uq/cryptography/
Traceback (most recent call last):
File “install.py”, line 436, in
install_prerequisites()
File “install.py”, line 143, in install_prerequisites
‘python3’: “sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip”
File “install.py”, line 118, in run_os_command
returncode = subprocess.check_call(command, shell=True, stdout=log_stream, stderr=sys.stderr)
File “/usr/lib/python2.7/subprocess.py”, 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.
https://erp.efeone.com/blog/developer-blog/installing-frappe-and-erpnext-on-ubuntu-1804-lts

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

BKM

1 Like

yes you can apply