php5.6 connect() to unix:/tmp/php-cgi.sock failed (13: Permission denied)

升级5.6.29后在nginx的日志中出现以下错误:

2017/01/20 10:54:14 [crit] 12936#0: *45 connect() to unix:/tmp/php-cgi.sock failed (13: Permission denied) while connecting to upstream, client:

解决方法在配置文件php-fpm.conf中添加:

listen.owner = www
listen.group = www

 

此条目发表在服务器分类目录,贴了标签。将固定链接加入收藏夹。

发表回复