Nginx 报错 open() "nginx/fastcgi_temp/7/14/0000000147" failed (13: Permission denied) while reading upstream
网站使用的是 Wordpress 无法正常打开某些页面,查看日志报错
[crit] 866#0: *698736 open() "/space/nginx/fastcgi_temp/7/14/0000000147" failed (13: Permission denied) while reading upstream, client: 39.149.237.52, server: shenqigushi.com, request: "GET /wp-admin/load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4.4 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.shenqigushi.com", referrer: "https://www.shenqigushi.com/wp-admin/post-new.php"
原因是nginx 是使用账户nginx运行的,我编译安装的nginx目录,没有设置目录的用户和用户组。
执行一下
chown -R nginx:nginx fastcgi_temp
即可解决
声明:本站所有文章和图片,如无特殊说明,均为原创发布。商业转载请联系作者获得授权,非商业转载请注明出处。