Home > Backend Development > PHP Tutorial > WordPress error ERR_INCOMPLETE_CHUNKED_ENCODING solution

WordPress error ERR_INCOMPLETE_CHUNKED_ENCODING solution

WBOY
Release: 2016-08-08 09:27:34
Original
3900 people have browsed it

                                                                                          having set up an nginx server on Alibaba Cloud. Today, wordpress access is not normal, css is not loaded successfully, and the background media library cannot be loaded. The Chrome console sees the following error: ERR_INCOMPLETE_CHUNKED_ENCODING.

Looked at the log under nginx/logs/error.log:

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: "123.57.1.14", referrer: "http://x.x.x.x/blog/wp-admin/"
Copy after login

After searching, I found this article http://www.tuicool.com/articles/7Bjiyq, which is similar to the problem I encountered. .

Found that fastcgi_temp in the nginx directory belongs to the nobody user and user group.

drwx------ 12 nobody  nobody    4096 Mar 14 18:24 fastcgi_temp
Copy after login
Look at the php-fpm configuration file again:
#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
Copy after login

The user and user group have been changed to www. Change fastcgi_temp and subdirectories to www. As follows:
#chown -R www:www fastcgi_temp

#ls -al
drwx------ 12 nobody  nobody    4096 Mar 14 18:24 fastcgi_temp
Copy after login
Visit wordpress again, everything is normal!

Reference: http://www.tuicool.com/articles/7Bjiyq

The above introduces the solution to the WordPress error ERR_INCOMPLETE_CHUNKED_ENCODING, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template