개발 스크랩 메모/PHP
밀집형 PHP 스크립트 실패 w / 지정한 시간 초과 'error/ apulength u filter
렉사이
2020. 12. 23. 22:37
실패한 MySQL 밀집형 PHP 스크립트를 실행합니다.
Apache 로그 보고서는 다음과 같습니다:
[Wed Jan 13 00:20:10 2010] [error] [client xxx.xx.xxx.xxxx] (70007) The timeout specified has expired: ap_content_length_filter: apr_bucket_read() failed, referer: http://domain.com/script.php
시간 제한 (0) 을 꼭대기에 올려 보려고 합니다.
시간 제한도 시도하기 (0)
둘 다 수정 시간 초과.
나는 http.conf (또는 다른 지방) 에 특정한 시간을 초과 제한하여 이런 상황이 발생하지 않도록 할 수 있습니까?
대답
Apache 2.4.4.6, PHP 5.4.23fm/FastCG에서 나도 비슷한 질문을 받았다.
증상:
PHP 나 Apache 에서 무엇을 설정하든 나의 스크립트는 30초 후 초과 시간을 초과할 것입니다.
Apache 오류 로그에서 다음 내용을 볼 것입니다.
[timestamp] [proxy_fcgi:error] [pid...] (70007)The timeout specified has expired: [client ...] AH01075: Error dispatching request to :
나의 가상 호스트:
TimeOut 300 KeepAliveTimeout 300 RequestReadTimeout header=120-240,minrate=500 RequestReadTimeout body=120,minrate=500 ProxyTimeout 300 FcgidConnectTimeout 300
싫어하는 php 스크립트:
ini_set( 'max_execution_time', '120' ); ... ini_restore( 'max_execution_time' );
복구 방법: Apache modu proxyu fcgi 중 하드 코드 값
- A patch is available (link above)
- The fix doesn't appear to be slated for general release yet (Mar 2014)