脚本在返回标题之前超时:php.fastcgi [英] Script timed out before returning headers: php.fastcgi

查看:42
本文介绍了脚本在返回标题之前超时:php.fastcgi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大约90秒后,我在apache错误日志中看到此错误.我很奇怪,我需要在PHP中增加一个设置,但是我不确定要更改哪个设置.

After about 90 seconds I see this error in my apache error log. I'm assusming I need to increase a setting in PHP but I'm not sure which one to change.

是否可以增加一项设置以清除此错误?

Is there one setting I can increase to clear this error?

推荐答案

在您的 php.ini 文件中找到类似以下内容的文件:

Find in your php.ini file something like this:

; 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

编辑值,重新启动apache,就完成了.

Edit the values, restart apache and you are done.

这篇关于脚本在返回标题之前超时:php.fastcgi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆