Hi to all,
After trying to install ErpNext on a CentOs distribution I finally got it, so I share results with you all.
There are other posts related:
I use this guide to start with: http://comtronic.com.au/install-erpnext-centos7/
This is what I did to accomplish:
0- Get the CentOs V7 or any but the DVD Core version: CentOS-7-x86_64-Minimal-1511.iso
- Set up everything:
- Language
- Time
- root Password
- HardDisk
- If network is not up and running:
nmtui (And modify as need it)
service network restart (Restart service)
Ping google.com (To test Internet connection)
1- Run the following command:
yum erase chrony -y && yum install vim ntp ntpdate telnet deltarpm wget open-vm-tools -y && systemctl enable ntpd && systemctl enable ntpdate && yum update -y && init 6
2- Modify the file /etc/sysconfig/selinux with:
SELINUX=disabled
…then > init 6
3- Create directory:
mkdir /opt/erpnext
cd /opt/erpnext
4- Execute command:
wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
5- Modify the setup_frappe.sh file:
…Locate function add_user(), on line 433 add :
usermod -aG wheel $FRAPPE_USER
…Later, locate line 478 then add:
usermod -G ‘’ $FRAPPE_USER
6- Execute and replace the word THE-PASSWORD-FOR-THE-MYSQL-SERVER with a password:
bash setup_frappe.sh --setup-production --mysql-root-password THE-PASSWORD-FOR-THE-MYSQL-SERVER --verbose
7- Stop nginx file config:
service nginx stop
8- Modify nginx config file on /etc/nginx/nginx.conf, with the following values:
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
log_format main '$remote_addr - $remote_user [$time_local] “$request” ’
'$status $body_bytes_sent “$http_referer” ’
‘“$http_user_agent” “$http_x_forwarded_for”’;
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
tcp_nodelay on;
#keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;
index index.html index.htm;
}
9- Then restart nginx service:
service nginx start
10- Modify the default company from site1.local to “testcompany.com”:
su frappe
cd ~/frappe-bench
mv sites/site1.local testcompany.com
bench --site testcompany.com install-app erpnext
sudo bench setup production frappe
…then:
sudo bench update
…At the end:
exit
11- Browse the testcompany.com site on port 80 with the IP or URL (testcompany.com) set on host.
Hope everyone find this guide usefull.