Installation failes CentOS 7 - nginx welcome page

i try to install ERPNext on a Centos 7 Virtual Machine (Minimal Install). After disabling SELINUX and disabling the firewall and a yum update, i start the script from the root account:
sudo bash --setup-production

The Setup runs without Errors but when opening the page on the IP on Port 80, i only get the nginx default test page.

What is happening here? When I try open Port 9000, this Error Pops up:
Error: ENOENT, stat ‘/home/frappe/frappe-bench/index.html’

There was never an index.html in this folder.

Also there is no error in the nginx log as well



I have to answer to myself:

Somehow the nginx.conf gets the default server page written into the conf, respectively it overrides the include conf.d files. So by deleting the section:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;

    # Load configuration files for the default server block.
    include /etc/nginx/default.d/*.conf;

    location / {

    error_page 404 /404.html;
        location = /40x.html {

    error_page 500 502 503 504 /50x.html;
        location = /50x.html {

from the nginx.conf the thing will work

@mruepp sorry no one answered fast enough, but not all developers are system administrators :slight_smile:

you might next time want to try bench setup nginx

but anyhow the ERP is best driven (as much as i know) on ubuntu and doing it on centos will have much different behavior and problems (from my experience)

from my point of view:

Centos: Apache
Ubunto: Nginx

dont cross the line

i answer this question in other reply…