当前位置:Gxlcms > PHP教程 > php调试超时的问题百度谷歌了N次求解决谢谢

php调试超时的问题百度谷歌了N次求解决谢谢

时间:2021-07-01 10:21:17 帮助过:49人阅读

用Phpstorm xdebug调试的时候 总是十几分这样就超时了。
环境window phpstudy php5.3 apache mysql

显示500错误


做了一下测试
1.在php文件 set_time_limit(0)
2.php.ini 设置xdebug xdebug.remote_cookie_expire_time = 3600
3.在httpd.conf加了行 Timeout 3600
4.修改了和fcgid_module 时间有关系的参数 httpd.conf

FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000
#php-cgi每个进程的最大请求数
FcgidMaxRequestsPerProcess 1000
#php-cgi最大的进程数
FcgidMaxProcesses 3
#最大执行时间
FcgidIOTimeout 1200
FcgidIdleTimeout 1200
IPCConnectTimeout 3000
IPCCommTimeout 3000
FcgidInitialEnv PHPRC "D:/phpStudy/php53n"
AddHandler fcgid-script .php
FcgidWrapper "D:/phpStudy/php53n/php-cgi.exe" .php


做了上述的操作 还是十几分500超时。求助大神!!


回复讨论(解决方案)

如果你执行的php文件加上 set_time_limit(0); 这句应该是永不超时啊。
检查一下错误日志

原来fcgid_module 还缺少一些参数 谢谢回复

人气教程排行