解决 failed (13: Permission denied) while reading upstream

调整了服务器用户组后,发现Nginx报错:

2019/08/14 15:03:14 [error] 18667#0: *13 FastCGI sent in stderr: "PHP message: PHP Warning:Use of undefined constant MUTHEME_NAME - assumed 'MUTHEME_NAME' (this will throw an Error in a future version of PHP) in /*** on line 15" while reading response header from upstream, client:*.*.*.22, server: www.uedbox.com, request: "GET /*** HTTP/1.1", upstream: "fastcgi://*.*.*.*", host: "www.uedbox.com"
2019/08/14 15:03:14 [crit] 18667#0: *13 open() "/usr/local/nginx/fastcgi_temp/1/00/0000000001" failed (13: Permission denied) while reading upstream, client: *.*.*.22, server: www.uedbox.com, request: "GET /*** HTTP/1.1", upstream: "fastcgi://*.*.*.*", host: "www.uedbox.com"

…………

*21685 open() "/usr/local/nginx/proxy_temp/8/00/0000000008" failed (13: Permission denied) while reading upstream, client: 59.***.**.***, server: ******

提取关键信息

地址为:/usr/local/nginx/fastcgi_temp/,跟过去看一下权限:

解决 failed (13: Permission denied) while reading upstream

一眼就看出来了,用户与组不匹配,更新组:

更新后的情况:

解决 failed (13: Permission denied) while reading upstream

现在再打开相关连接,正常显示了。解决。