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

listen.owner, listen.user, listen.mode are not configurable and causes error for socket #33

Closed
o10g opened this issue Jan 29, 2018 · 1 comment

Comments

@o10g
Copy link

o10g commented Jan 29, 2018

Should be able to configure these three directives:

listen.owner = www-data
listen.group = www-data
listen.mode = 0660

Without them socket is created from root which causes the error:

*12 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream

@NBZ4live
Copy link
Owner

NBZ4live commented Feb 3, 2018

Hi,

it is possible in the php_fpm_pool_defaults and php_fpm_config variables.
At least in the newer versions.

Just use like:

php_fpm_pools:
 - name: foo
   user: www-data
   group: www-data
   listen: /my/socket/path
   listen. owner: www-data
   listen.group = www-data
   listen.mode = 0660
   chdir: /

PS: PHP 5 is not supported for long time already.

@NBZ4live NBZ4live closed this as completed Feb 3, 2018
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

No branches or pull requests

2 participants