错误ERR_INCOMPLETE_CHUNKED_ENCODING解决方法
2017-05-18 19:09
531 查看
在服务器上搭建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
看了下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
相关文章推荐
- 错误ERR_INCOMPLETE_CHUNKED_ENCODING解决方法
- wordpress错误ERR_INCOMPLETE_CHUNKED_ENCODING解决方法
- Net::ERR_INCOMPLETE_CHUNKED_ENCODING问题跟踪,顺藤摸找出解决方法
- 记一次Chrome 错误“net::ERR_INCOMPLETE_CHUNKED_ENCODING”的解决经历
- 使用Android提供的模拟任意地理位置,报java.lang.IllegalArgumentException: Incomplete location object异常的解决方法
- Some characters cannot be mapped using "Cp1252" character encoding 解决方法
- Some characters cannot be mapped using "ISO - 8859 -1" character encoding 解决方法
- Vmware 精简版 打开vmx虚拟机出错 encoding "windows-1251". 的解决方法(转http://hi.baidu.com/zqjiang/blog/item/381d377)
- Invalid character in the given encoding. Line XX, position XX.解决方法
- NSString asscii格式(2进制) 转 utf8格式——解决iOS自己处理http socket数据,遇到Transfer-Encoding: chunked时
- Some characters cannot be mapped using "Cp1252" character encoding 解决方法
- MyEclipse问题:some characters can not mapped using "iso-8859-1" character encoding 解决方法
- python错误:AttributeError: 'module' object has no attribute 'setdefaultencoding'问题的解决方法
- Invalid character in the given encoding. Line XX, position XX.解决方法
- Invalid character in the given encoding. Line XX, position XX.解决方法
- IIS 动态压缩无效或发生NO_ACCEPT_ENCODING的解决方法
- 使用JDBC连接DB2时encoding not supported异常的解决方法
- Mono环境下不支持Encoding.GetEncoding("GB2312")的解决方法
- HtmlParser org.htmlparser.util.EncodingChangeException解决方法
- Chrome插件开发之"Could not load extension... Unsopported encoding "错误解决方法