ERPNext V12 Installation Steps - jigneshpshah/greycube_helpmanual GitHub Wiki
option 1 :
Login with root
$ enable_ipv6
$ shutdown -r now
apt-get update
apt-get install python3-minimal build-essential python3-setuptools
adduser frappe
usermod -aG sudo frappe
su - frappe
wget https://raw.githubusercontent.com/frappe/bench/develop/install.py
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
sudo -H python3 install.py --production --user [frappe-user] --mysql-root-password [mypassword] --admin-password [admin-password] --bench-branch master --verbose --container
after that for site creation
bench new-site [XX.YY.com] --db-name [XX] --install-app erpnext --admin-password [admin-password]
sudo python3 install.py
cd frappe-bench/
sudo bench setup production frappe
bench restart
option 2
usr: root
sudo apt-get update
sudo apt-get install python-minimal
sudo apt-get install build-essential python-setuptools
Python 3.7
installStart by updating the packages list and installing the prerequisites:
sudo apt update
sudo apt install software-properties-common
Next, add the deadsnakes PPA to your sources list:
sudo add-apt-repository ppa:deadsnakes/ppa
When prompted press Enter to continue:
sudo apt install python3.7
python3.7 --version
add frappe user
sudo adduser frappe
sudo usermod -aG sudo frappe
su - frappe
usr: frappe
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo python3 install.py --production
bench setup backups
bench --site sitename enable-scheduler
for SSL must
$ sudo apt install libssl1.0-dev
redis server contabo issue
try to edit the redis.conf
sudo nano /etc/redis/redis.conf
try to find bind 127.0.0.1 ::1 change it to bind 127.0.0.1 save and exit
sudo systemctl restart redis-server
sudo systemctl status redis-server
Performance Tuning
- Increase Gunicorn Worker Process
Recommended max = 2* No of Cores + 1
e.g. for 2 vCPU = 4 /5
go to sites folder
nano common_site_config.json
"gunicorn_workers" : 4
bench setup supervisor
sudo supervisorctl reread
sudo supervisorctl update
- Increase Database RAM to 70% of the server RAM
cd /etc/mysql/
sudo nano my.cnf
change innodb_buffer_pool_size = 1G
useful links
https://discuss.erpnext.com/t/error-on-erpnext-ubuntu-18-04-lts-installation/54961/54?u=jignesh_shah
https://discuss.erpnext.com/t/error-on-erpnext-ubuntu-18-04-lts-installation/54961/31?u=jignesh_shah
Install Yarn
Yarn (>=1.0.0) To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn