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