错误ERR_INCOMPLETE_CHUNKED_ENCODING解决方法
2015-12-28 13:39
786 查看
在服务器上搭建zabbix监控,发现配置好后的web页面部分功能无法使用,用鼠标点击无反应,通过Chrome控制台看到如下错误:ERR_INCOMPLETE_CHUNKED_ENCODING。
看了下nginx/logs/error.log下日志:
[html] view
plaincopy
open() "/aliyun/server/nginx/fastcgi_temp/1/02/0000000021" failed (13: Permission denied) while reading upstream, client: x.x.x.x, server: x.x.x.x, request: "GET /blog/wp-admin/load-styles.php?c=1&dir=ltr&load=dashicons,admin-bar,wp-admin,buttons,wp-auth-check&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "xx.xx.xx.xx", referrer: "http://x.x.x.x/blog/wp-admin/"
搜索了下,发现nginx目录下fastcgi_temp属于nobody用户和用户组。
[html] view
plaincopy
drwx------ 12 nobody nobody 4096 Mar 14 18:24 fastcgi_temp
再看php-fpm配置文件:
[html] view
plaincopy
#vi /etc/php-fpm.d/www.conf
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
; will be used.
; RPM: apache Choosed to be able to access some dir as httpd
;user = nobody
user=www
; RPM: Keep a group allowed to write in log dir.
;group = nobody
group=www
用户和用户组已经改成了www。将fastcgi_temp及子目录改为www。如下:
[html] view
plaincopy
#chown -R www:www fastcgi_temp
#ls -al
drwx------ 12 www www 4096 Mar 14 18:24 fastcgi_temp
再次访问wordpress,一切正常!
看了下nginx/logs/error.log下日志:
[html] view
plaincopy
open() "/aliyun/server/nginx/fastcgi_temp/1/02/0000000021" failed (13: Permission denied) while reading upstream, client: x.x.x.x, server: x.x.x.x, request: "GET /blog/wp-admin/load-styles.php?c=1&dir=ltr&load=dashicons,admin-bar,wp-admin,buttons,wp-auth-check&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "xx.xx.xx.xx", referrer: "http://x.x.x.x/blog/wp-admin/"
搜索了下,发现nginx目录下fastcgi_temp属于nobody用户和用户组。
[html] view
plaincopy
drwx------ 12 nobody nobody 4096 Mar 14 18:24 fastcgi_temp
再看php-fpm配置文件:
[html] view
plaincopy
#vi /etc/php-fpm.d/www.conf
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
; will be used.
; RPM: apache Choosed to be able to access some dir as httpd
;user = nobody
user=www
; RPM: Keep a group allowed to write in log dir.
;group = nobody
group=www
用户和用户组已经改成了www。将fastcgi_temp及子目录改为www。如下:
[html] view
plaincopy
#chown -R www:www fastcgi_temp
#ls -al
drwx------ 12 www www 4096 Mar 14 18:24 fastcgi_temp
再次访问wordpress,一切正常!
相关文章推荐
- 设计模式思考(转)
- [LeetCode] Coin Change
- Unity中更改文件夹名
- lua 的常用math 函数
- Delphi 执行控制台(console)程序获取返回结果
- spark Shuffle
- Python标准库05 存储对象 (pickle包,cPickle包)
- 老男孩培训心得
- YUM安装配置详解
- Unity中UGUI输入信息框
- ETL AUTOMATION介绍
- MySQL中函数CONCAT及GROUP_CONCAT
- TextMate 小小心得
- Linux change timezone
- lua 在cocos2dx 2.2 中的触摸事件
- 153,改变控件的位置,缩放大小与旋转角度
- Android倒计时:计算两个时间将得到的时间差转化为倒计时(xx时xx分xx秒格式)
- html5调用手机相机并压缩、上传
- 端口占用问题
- Halcon模板匹配三