>  기사  >  백엔드 개발  >  WordPress 오류 ERR_INCOMPLETE_CHUNKED_ENCODING 해결 방법

WordPress 오류 ERR_INCOMPLETE_CHUNKED_ENCODING 해결 방법

WBOY
WBOY원래의
2016-08-08 09:27:343810검색

Alibaba Cloud에 nginx 서버를 설정했는데 오늘은 WordPress 액세스가 정상적이지 않고 CSS가 성공적으로 로드되지 않으며 백그라운드 미디어 라이브러리를 로드할 수 없습니다. Chrome 콘솔에 ERR_INCOMPLETE_CHUNKED_ENCODING 오류가 표시됩니다.

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/"

검색하다가 이런 글을 발견했습니다. http: //www .tuicool.com/articles/7Bjiyq는 내가 겪은 문제와 유사합니다.

nginx 디렉토리의 fastcgi_temp가 none 사용자 및 사용자 그룹에 속해 있음을 발견했습니다.

drwx------ 12 nobody  nobody    4096 Mar 14 18:24 fastcgi_temp
php-fpm 구성 파일을 다시 살펴보세요.
#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로 변경합니다. 다음과 같습니다:
#chown -R www:www fastcgi_temp

#ls -al
drwx------ 12 nobody  nobody    4096 Mar 14 18:24 fastcgi_temp
wordpress를 다시 방문하면 모든 것이 정상입니다!

참고: http://www.tuicool.com/articles/7Bjiyq

위 내용은 관련 내용을 포함하여 워드프레스 오류 ERR_INCOMPLETE_CHUNKED_ENCODING에 대한 해결방법을 소개하고 있으니 PHP 튜토리얼에 관심이 있는 친구들에게 도움이 되었으면 좋겠습니다.

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.