调整了服务器用户组后,发现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: ******
提取关键信息
failed (13: Permission denied) while reading upstream
地址为:/usr/local/nginx/fastcgi_temp/
,跟过去看一下权限:
一眼就看出来了,用户与组不匹配,更新组:
sudo chown -R nobody:nobody /usr/local/nginx/fastcgi_temp
sudo chown -R nobody:nobody /usr/local/nginx/proxy_temp
更新后的情况:
现在再打开相关连接,正常显示了。解决。
原文连接
的情况下转载,若非则不得使用我方内容。