Debian Jessie的nginx 1.12.0和php7.1-fpm的权限问题
我已经在主文件夹下configuration了php-fpm和nginx进行开发,并且我一直无法解决权限问题。 看起来php7.1-fpm.sock仍然拒绝连接,即使所有权限看起来都是正确的。 错误: root@xps:/var/log/nginx# cat error.log 2017/05/29 00:41:23 [crit] 27326#27326: *1 connect() to unix:/run/php/php7.1-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 127.0.0.1, server: sub.tld.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.1-fpm.sock:", host: "sub.tld.com" 每次尝试访问Web根目录时都会发生这种情况,该根目录应显示: <?php echo phpinfo(); ?> 在浏览器窗口中。 nginx.conf user darin darin; […] sub.tld.com.conf用于nginx server_name sub.tld.com root /home/darin/www […] location ~ \.php$ { […]