2012-06-27 2 views
3

약 90 초 후에 아파치 오류 로그에이 오류가 표시됩니다. 나는 PHP에서 설정을 증가시킬 필요가 있다고 말하고 있지만 어느 것이 바뀌어야할지 모르겠습니다.헤더를 반환하기 전에 스크립트가 시간 초과되었습니다. php.fastcgi

이 오류를 해결하려면 하나의 설정을 늘릴 수 있습니까?

+2

일반적으로 나는 웹 요청을하는 지혜에 의문을 제기해야한다. 최종 사용자는 지루해지며이 제한 시간보다 오래 전에 브라우저 화면을 종료합니다. 이러한 긴 요청은 Refresh HTTP 헤더를 사용하여 배치 Q 또는 psuedo 일괄 처리로 이동하여 주기적으로 repolling 및 progress update를 수행하는 것이 더 효율적으로 최적화됩니다. – TerryE

답변

3

찾기 :

; Maximum execution time of each script, in seconds 
; http://php.net/max-execution-time 
; Note: This directive is hardcoded to 0 for the CLI SAPI 
max_execution_time = 600  

; Maximum amount of time each script may spend parsing request data. It's a good 
; idea to limit this time on productions servers in order to eliminate unexpectedly 
; long running scripts. 
; Note: This directive is hardcoded to -1 for the CLI SAPI 
; Default Value: -1 (Unlimited) 
; Development Value: 60 (60 seconds) 
; Production Value: 60 (60 seconds) 
; http://php.net/max-input-time 
max_input_time = 600 

편집 값은 아파치를 다시 시작하면 모든 작업이 완료된다.

2

set_time_limit(0);을 호출하면 PHP 스크립트에서 무제한 시간 제한을 설정할 수 있습니다. 이처럼 php.ini 파일 뭔가

관련 문제