- Operating system: Ubuntu 16.04
Hi, after the installation of zammad, i can’t find zammad.conf (into /etc/nginx/conf.d/) so zammad doesn’t work.
Please help me.
The default config file should be available in /opt/zammad/contrib/nginx/
You might want to copy it and change the server_name
if needed.
Mmh because if I do not touch anything when i go to localhost the browser show me nginx index page, and if i move zammad.conf into /etc/nginx/conf.d/ when i restart nginx it gives me an error.
(this is the 4th time i try to install it)
Would you mind sharing the exact error message or related log entries?
if I do not touch anything after installation, it simply does not show me the zammad page, I think it is not redirected to zammad.
(when i try to go to localhost, into error log of nginx there is this error :
2018/11/12 17:16:32 [emerg] 9671#9671: duplicate upstream “zammad-railsserver” in /etc/nginx/sites-enabled/zammad.conf:5 )
#############################
If i move zammad.conf from /opt/ to nginx conf.d dir, when i try nginx -t it gives me this error :
nginx: [emerg] duplicate upstream “zammad-railsserver” in /etc/nginx/sites-enabled/zammad.conf:5
nginx: configuration file /etc/nginx/nginx.conf test failed.
Since you are using Ubuntu, the directory for your config file is /etc/nginx/sites-enabled/
. There should be a zammad.conf inside. Remove the duplicate file /etc/nginx/conf.d/zammad.conf and restart nginx. Ensure that the Zammad services are up and running and try to access the webinterface.
even after performing the procedure, although the services are up, localhost continues to show me the Nginx page.
This is what print the status of the services :
root@zammad:/etc/nginx/sites-enabled# systemctl status zammad
â— zammad.service
Loaded: loaded (/etc/systemd/system/zammad.service; enabled; vendor preset: enabled)
Active: active (running) since lun 2018-11-12 16:08:19 CET; 16h ago
Main PID: 9021 (sleep)
Tasks: 1
Memory: 116.0K
CPU: 1ms
CGroup: /system.slice/zammad.service
└─9021 /bin/sleep infinity
nov 12 16:08:19 zammad systemd[1]: Started zammad.service.
root@zammad:/etc/nginx/sites-enabled# systemctl status zammad-web
â— zammad-web.service
Loaded: loaded (/etc/systemd/system/zammad-web.service; enabled; vendor preset: enabled)
Active: active (running) since lun 2018-11-12 16:08:19 CET; 16h ago
Main PID: 9022 (sleep)
Tasks: 1
Memory: 84.0K
CPU: 1ms
CGroup: /system.slice/zammad-web.service
└─9022 /bin/sleep infinity
nov 12 16:08:19 zammad systemd[1]: Started zammad-web.service.
root@zammad:/etc/nginx/sites-enabled# systemctl status zammad-worker
â— zammad-worker.service
Loaded: loaded (/etc/systemd/system/zammad-worker.service; enabled; vendor preset: enabled)
Active: active (running) since lun 2018-11-12 16:08:19 CET; 16h ago
Main PID: 9032 (sleep)
Tasks: 1
Memory: 84.0K
CPU: 838us
CGroup: /system.slice/zammad-worker.service
└─9032 /bin/sleep infinity
nov 12 16:08:19 zammad systemd[1]: Started zammad-worker.service.
root@zammad:/etc/nginx/sites-enabled# systemctl status zammad-websocket
â— zammad-websocket.service
Loaded: loaded (/etc/systemd/system/zammad-websocket.service; enabled; vendor preset: enabled)
Active: active (running) since lun 2018-11-12 16:08:19 CET; 16h ago
Main PID: 9028 (sleep)
Tasks: 1
Memory: 80.0K
CPU: 876us
CGroup: /system.slice/zammad-websocket.service
└─9028 /bin/sleep infinity
nov 12 16:08:19 zammad systemd[1]: Started zammad-websocket.service.
Replace localhost
with the server ip in your zammad.conf, then restart nginx and try to access the webinterface.
# replace 'localhost' with your fqdn if you want to use zammad from remote
server_name localhost;
It Works, thank you very much.
it can be closed
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.