Used Zammad installation source: (source, package, …): Centos 7 Installation packafe and installation steps
Operating system: Centos 7 64-bit
Browser + version: Same issues on Mozilla, Chrome and Safari
Expected behavior:
nginx is supposed to start up normally if the installation steps were followed as per https://docs.zammad.org/en/latest/install-centos.html
Should Simply start nad I should be able to connect to Zammad through the browser
Actual behavior:
nginx fails to start. The outpur of systemctl status nginx:
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2018-03-05 18:45:13 SAST; 4min 3s ago
Process: 23631 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Process: 23628 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Mar 05 18:45:13 sd.uc-x.net systemd[1]: Starting The nginx HTTP and reverse proxy server…
Mar 05 18:45:13 sd.uc-x.net nginx[23631]: nginx: [emerg] “upstream” directive is not allowed here in /etc/nginx/conf.d/zammad.conf:5
Mar 05 18:45:13 sd.uc-x.net nginx[23631]: nginx: configuration file /etc/nginx/nginx.conf test failed
Mar 05 18:45:13 sd.uc-x.net systemd[1]: nginx.service: control process exited, code=exited status=1
Mar 05 18:45:13 sd.uc-x.net systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
Mar 05 18:45:13 sd.uc-x.net systemd[1]: Unit nginx.service entered failed state.
Mar 05 18:45:13 sd.uc-x.net systemd[1]: nginx.service failed.
When running nginx -t, the output is as follows:
]nginx: [emerg] “upstream” directive is not allowed here in /etc/nginx/conf.d/zammad.conf:5
nginx: configuration file /etc/nginx/nginx.conf test failed
I am not able to find any firther documentation on why this error occurs, and I have rebuilt the server twice already. I did update the server name in the zammad.conf file as per the instructions.
I am running exactly same configuration as you, and Zammad installs and works well for me. In your case I guess NGINX misses ngx_http_upstream_module module which supports upstream declarations in config files. Maybe you can dig a bit in that direction.
@MrGeneration, thank you for the follow up. I used standard installation procedure for CentOS, installation went well without any error. Zammad works as expected if configured as clean installation (without OTRS migration).
It is possible that the default CentOS Repos do not include this module.
I’ve googled that up for you, you can follow the instructions of the following site: