Nginx 报错 open "nginx/fastcgi_temp" failed Permission denied while reading upstream

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


即可解决


修改时间 2021-03-04

真诚赞赏,手留余香
赞赏
随机推荐
PHP 开启 Zend Opcache
关于磅
php 将字符串按大写字母分隔成字符串数组
19号笔刷的运用小技巧
Premiere 去除视频背景 绿幕抠图
Thinkcmf面包屑
一个页面中多个window.onload = function(){}冲突问题解决思路
HTTP 协议入门
20170502随笔
node-sass 安装失败 gyp ERR! stack Error: EACCES: permission denied, mkdir '.../node-sass/build'