脚本在返回标题之前超时:php.fastcgi
发布时间:2020-12-13 17:20:03 所属栏目:PHP教程 来源:网络整理
导读:大约90秒后,我在apache错误日志中看到此错误.我在讨论我需要增加 PHP中的设置,但我不确定要改变哪一个. 我可以增加一个设置来清除此错误吗? 解决方法 在你的php.ini文件中查找如下: ; Maximum execution time of each script,in seconds; http://php.net/m
大约90秒后,我在apache错误日志中看到此错误.我在讨论我需要增加
PHP中的设置,但我不确定要改变哪一个.
我可以增加一个设置来清除此错误吗? 解决方法
在你的php.ini文件中查找如下:
; 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,就完成了. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |