FastCGI 进程超过了配置的活…

  一、服务器iis7跑dedecms在后台生成栏目静态时出错:

  HTTP 错误 500.0 - Internal Server Error

  E:\Program Files\php\php-cgi.exe - FastCGI 进程超过了配置的活动超时时限

  网上一搜,解决方案如下:

  使用%WINDIR%\system32\inetsrv\appcmd.exe list config /section:fastcgi /text:*获得当前配置

  CONFIG

  CONFIG.SECTION:"system.webServer/fastCgi"

  path:"MACHINE/WEBROOT/APPHOST"

  overrideMode:"Inherit"

  locked:"false"

  [system.webServer/fastCgi]

  [application]

  fullPath:"E:\Program Files\php\php-cgi.exe"

  arguments:""

  maxInstances:"4"

  idleTimeout:"300"

  activityTimeout:"30"

  requestTimeout:"90"

  instanceMaxRequests:"200"

  protocol:"NamedPipe"

  queueLength:"1000"

  flushNamedPipe:"false"

  rapidFailsPerMinute:"10"

  [environmentVariables]

  使用appcmd set config -section:system.webServer/fastCgi /[fullPath='E:\Program Files\php\php-cgi.exe'].activityTimeout:600

  将超时时限改成10分钟(最大可以设到1小时)

  可是报错:

  ERROR ( message:找不到带有标识符“Files\php\php-cgi.exe'].activityTimeout:600”的 SITE 对象。 )

  所有搜到的中文网站php-cgi.exe的路径都没有空格,但是我的偏偏就有,执行不了。

  最后跑到老外的网上找到了解决办法:%windir%\system32\inetsrv\appcmd set config /section:system.webServer/fastCGI "/[fullPath='E:\Program Files\php\php-cgi.exe'].activityTimeout:600"

  二、

  %windir%\system32\inetsrv\appcmd set config -section:system.webServer/fastCgi /[fullPath='C:\php\php-cgi.exe'].activityTimeout:600

  如果还是不行,请查看IIS应用程序池,可以改为默认(DefaultAppPool)。

  三、

  %windir%\system32\inetsrv\appcmd set config -section:system.webServer/fastCgi /[fullPath='C:\php\php-cgi.exe'].activityTimeout:600

  查看当前配置

  %windir%\system32\inetsrv\appcmd list config -section:system.webServer/fastCgi

  都是在cmd下运行

  也可以在C:\Windows\System32\inetsrv\config\applicationHost.config 进行编辑

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值