Intellij IDEA配置xdebug,thinkphp调试过短

apache php请求超时时间设置,PhpStudy+Xdebug调试超时500解决方法 Apache2.4
调试时间太短的问题…

解决方法

1,vim Apache2.4.39\conf\httpd.conf

1.打开apache配置文件注释掉如下,并添加一行。

# Various default settings

Include conf/extra/httpd-default.conf 将注释去掉

Include conf/extra/httpd-fcgid.conf 添加此行

Apache2.4.39\conf\extra
2,更改httpd-default.conf如下内容

# Timeout: The number of seconds before receives and sends time out.

Timeout 3600

# KeepAlive: Whether or not to allow persistent connections (more than

# one request per connection). Set to "Off" to deactivate.

KeepAlive On

# MaxKeepAliveRequests: The maximum number of requests to allow

# during a persistent connection. Set to 0 to allow an unlimited amount.

# We recommend you leave this number high, for maximum performance.

MaxKeepAliveRequests 0

# KeepAliveTimeout: Number of seconds to wait for the next request from the

# same client on the same connection.

KeepAliveTimeout 3600

Apache2.4.39\conf\extra
3,在extra目录下创建httpd-fcgid.conf,写入如下内容。

ProcessLifeTime 3600
FcgidIOTimeout 3600
FcgidConnectTimeout 3600
FcgidOutputBufferSize 128
FcgidMaxRequestsPerProcess 1000
FcgidMinProcessesPerClass 0
FcgidMaxProcesses 16
FcgidMaxRequestLen 268435456
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000
IPCConnectTimeout 3600
IPCCommTimeout 3600
FcgidIdleTimeout 3600
FcgidBusyTimeout 60000
FcgidBusyScanInterval 120
FcgidInitialEnv PHPRC "D:\Software\phpstudy_pro\Extensions\php\php5.5.9nts" 此处填写正在使用的php路径
AddHandler fcgid-script .php

3,更改php.ini如下内容

max_execution_time = 3600
; 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.

摘录:
https://learnku.com/articles/45675 【phpstorm 使用 Xdebug 调试代码】
https://blog.csdn.net/weixin_28854171/article/details/115232102

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值