Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
May 16, 2024

Conversation

baszoetekouw
Copy link
Contributor

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
  • Bugfix Pull Request
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

Copy link
Collaborator

@pyrodie18 pyrodie18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a change fragment

@baszoetekouw
Copy link
Contributor Author

Please add a change fragment

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

@baszoetekouw
Copy link
Contributor Author

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

@pyrodie18 pyrodie18 merged commit 70c0f69 into ansible-collections:main May 16, 2024
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants