R
R
Roman Makarov2016-02-27 18:59:57
PHP
Roman Makarov, 2016-02-27 18:59:57

Why does php-fpm require more rights? What does he want?

fedora 23, nginx 1.8.1
Error in logs /var/log/php-fpm/error.log looks like:

ERROR: unable to bind listening socket for address '/run/php-fpm/www.sock': Permission denied (13)

/run/php-fpm folder made as 775 nginx nginx
from "/etc/php-fpm/www.conf" (in random order, the whole log does not fit):

listen.acl_users = apache,nginx
user = nginx
group = nginx
listen.owner = nginx
listen.group = nginx
listen.mode = 0660

www-data - there is no such group or user.
I did the same (it solved strange permission problems earlier): chcon -Rv --type=httpd_user_content_rw_t /run/php-fpm

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TyzhSysAdmin, 2016-02-27
@rmakarov

Your "weird permission issues earlier" are called SeLinux :)
See /var/log/audit/audit.log

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question