ansible-collections / community.zabbix

Zabbix Ansible modules
http://galaxy.ansible.com/community/zabbix
Other
315 stars 265 forks source link

allow nginx/apache group to write to FPM socket #1227

Closed baszoetekouw closed 1 month ago

baszoetekouw commented 1 month ago
SUMMARY

In the current configuration, the web server is not allowed to write to the FPM socket, causing a "bad gateway" error, as the web server cannot forward requests over the socket.

ISSUE TYPE
COMPONENT NAME

zabbix-web

ADDITIONAL INFORMATION

Before this change, the FPM socket has these permissions:

srw-r--r-- 1 zabbix-fpm www-data 0 May 13 13:13 /run/php/zabbix.sock

The web server, which runs as user/group www-data needs write access to this socket in order to forward requests.

With this PR applied, the socket permissions become:

srw-rw---- 1 zabbix-fpm www-data 0 May 13 13:15 /run/php/zabbix.sock
baszoetekouw commented 1 month ago

Please add a change fragment

Sorry, I don't know what you mean by that.

pyrodie18 commented 1 month ago

https://docs.ansible.com/ansible/latest/community/development_process.html#creating-a-changelog-fragment

baszoetekouw commented 1 month ago

Thanks, I wasn't aware of that documentation. I'll prepare the changelog!