Install ERPNext 13+ on OL8 ( Oracle Linux 8 and above )
Install ERPNext 13+ on OL8 ( Oracle Linux 8 and above ) After CentOS discontinued it's life cycle, we have published several articles on Ubuntu based installation of ERPNext. But several alternative
·
2 min read
yum update -yinit 6sudo yum groupinstall 'Development Tools'sudo yum install -y gcc make git mariadb mariadb-server nginx python3 python3-devel python2 python2-devel redis---------wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpmrpm -Uvh epel-release-latest-8.noarch.rpmsudo yum install libxslt-devel libxml2-devel supervisor nodejs postgresql-devel xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 libXrender libXext redis git python3-devel-----------------sudo 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 lines[Supervisor]name=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-oraclegpgcheck=0enabled=1sudo yum install supervisorsudo vim /etc/supervisord.conf -uncomment or add chown=erpnext:erpnext----------------curl -fsSL https://rpm.nodesource.com/setup_16.x | bash -npm install -g yarnnpm install -g npm@7.21.1yarn add latestnpm install node-sassnpm install -g sass------------service mariadb startmysql_secure_installationEnter current password for root (enter for none): Press your [Enter] key, there is no password set by defaultSet root password? [Y/n] YNew password:Re-enter new password:Remove 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] Y------------------------service mariadb startchkconfig mariadb onservice nginx startchkconfig nginx onchkconfig supervisord onservice supervisord start-------------------vim /etc/my.cnf.d/erpnext.cnf[mysqld]innodb-file-format=barracudainnodb-file-per-table=1innodb-large-prefix=1character-set-client-handshake = FALSEcharacter-set-server = utf8mb4collation-server = utf8mb4_unicode_ci[mysql]default-character-set = utf8mb4----------------------------service mariadb restart-----------------------mysql -u root -pMariaDB [(none)]>USE mysql;MariaDB [(none)]>UPDATE user SET plugin='mysql_native_password' WHERE User='root';MariaDB [(none)]> FLUSH PRIVILEGES;MariaDB [(none)]> EXIT;---------------------------------------------------------useradd -m -s /bin/bash erpnextpasswd erpnextusermod -aG wheel erpnext------su - erpnextvim ~/.bashrcadd this linesPATH=$PATH:~/.local/bin/PATH=$PATH:/usr/local/bin/source ~/.bashrcsu - erpnextsudo mkdir /opt/benchsudo chown -R erpnext:erpnext /opt/benchcd /opt/benchnpm install node-sass@6.0.1pip3 install --user frappe-benchbench init frappe-bench --frappe-branch version-13cd frappe-benchsed -i '/web:/ s/$/ --noreload/' Procfilebench start >/tmp/bench_log &bench new-site yourhost.example.com--------Install wkhtmltopdf herer if yum not workingsudo wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox** ( Find the best link here is one https://wkhtmltopdf.org/downloads.html )sudo rpm -Uvh wkhtmltox-0.12.6-1.centos***----------------source env/bin/activatenpm install sassnpm install node-sassdeactivate-----------------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 continuebench get-app erpnext --branch version-13bench --site site1.local install-app erpnext ( if you have more than one site mention site name like " bench --site site1.local install-app erpnext "bench startNow 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 --yesbench setup nginxsudo 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 restart
sudo systemctl enable supervisordsudo systemctl enable nginx
restart the system - init 6
--------------
Now Letsencrypt and SSL
--------------------------
It's explained here https://erpgulf.com/blog/support-forum/letsencrypt-on-ubuntu-version-20-for-erpnext
sudo service nginx stop
Team ERPGulf
The team behind ERPGulf blogs here, expresses their thoughts, shares the experience, often show the frustrations. Contact us on support@ERPGulf.com
No comments yet. Start a new discussion.