简体   繁体   English

运行调试会话时Xdebug超时(PhpFarm | phpFcgi)

[英]Xdebug time out while running debug session (PhpFarm | phpFcgi)

I run apache Webserver inside of a docker container. 我在docker容器中运行apache Webserver。 To be able to use multiple php-versions, I use phpfarm inside of this docker-container. 为了能够使用多个php版本,我在此docker-container内部使用了phpfarm。

After I configured xdebug and connect it to phpstorm, I wonder why the debug-session allways finishd with a 500 error in the Browser. 配置xdebug并将其连接到phpstorm之后,我想知道为什么调试会话始终在浏览器中以500错误结束。

The timeout was nearly 40 - 50 Seconds after I request the Webpage. 请求网页后,超时时间将近40-50秒。

Solution was to set the Timeout for the Server in the vhostfile for each php-version: 解决方案是在每个php版本的vhostfile中设置服务器的超时:

FcgidIOTimeout 300

With this parameter, the timeout isset to 300 Seconds. 使用此参数,超时设置为300秒。 Don't forget to restart or reload the Webserver. 不要忘记重新启动或重新加载Web服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM