Install ERPNext 13+ on OL8 ( Oracle Linux 8 and above )
Original document is here, please visit for latest updates https://erpgulf.com/blog/linux-and-cloud/install-erpnext-13-on-ol8-oracle-linux-8-and-above
sudo yum install -y gcc make git mariadb mariadb-server nginx python3 python3-devel python2 python2-devel redissudo yum install supervisor ( If this step giving an error, add the repo like shown below )vim /etc/yum.repos.d/my-add.repo -- add following linesname=Supervisor for Oracle Linux 8 ($basearch)baseurl=http://yum.oracle.com/repo/OracleLinux/OL8/developer/EPEL/x86_64gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oraclesudo yum install supervisorcurl -fsSL https://rpm.nodesource.com/setup_16.x | bash -sudo yum install -y nodejsnpm install -g npm@7.21.1mysql_secure_installationEnter current password for root (enter for none): Press your [Enter] key, there is no password set by defaultSet root password? [Y/n] YRemove anonymous users? [Y/n] YDisallow root login remotely? [Y/n] YRemove test database and access to it? [Y/n] YReload privilege tables now? [Y/n] Yservice supervisord startvim /etc/my.cnf.d/erpnext.cnfinnodb-file-format=barracudacharacter-set-client-handshake = FALSEcharacter-set-server = utf8mb4collation-server = utf8mb4_unicode_cidefault-character-set = utf8mb4MariaDB [(none)]>USE mysql;MariaDB [(none)]>UPDATE user SET plugin='mysql_native_password' WHERE User='root';MariaDB [(none)]> FLUSH PRIVILEGES;useradd -m -s /bin/bash erpnextusermod -aG wheel erpnextsudo chown -R erpnext:erpnext /opt/benchpip3 install --user frappe-benchbench init frappe-bench --frappe-branch version-13sed -i '/web:/ s/$/ --noreload/' Procfilebench start >/tmp/bench_log &bench new-site yourhost.example.comAt this point we have a frappe site running - bench start and you will get the website on port 8000. But ERPNext not yet installed. Let's continuebench get-app erpnext --branch version-13bench install-app erpnext ( if you have more than one site mention site name like " bench --site site1.local install-app erpnext "Now you have ERPNext on port 8000. ( http://yourhost.example.com:8000 )You can run the setup-wizard on the browser. ( Setup-wizard often fail. Restart it again and again. This issue has been there since ages and yet to be fixed )----- NOW deploy it in production mode - on nginx server -------bench setup supervisor --yessudo ln -s `pwd`/config/supervisor.conf /etc/supervisord.d/frappe-bench.inisudo ln -s `pwd`/config/nginx.conf /etc/nginx/conf.d/frappe-bench.confsudo service supervisord restartsudo service nginx restartuseradd -m -s /bin/bash erpnext
At this point we have a frappe site running — bench start and you will get the website on port 8000. But ERPNext not yet installed. Let’s continue
Now you have ERPNext on port 8000. ( http://yourhost.example.com:8000 )
You can run the setup-wizard on the browser. ( Setup-wizard often fail. Restart it again and again. This issue has been there since ages and yet to be fixed )
— — — NOW deploy it in production mode — on nginx server — — — -
restart the system — init 6
Now Letsencrypt and SSL
Originally published at https://erpgulf.com on August 29, 2021.