FastCGI process exceeded configured activity timeout

前端 未结 4 770
执笔经年
执笔经年 2020-12-13 17:57

I have a function I built that will grab a .csv file and upload information stated then, creating an account for each user in the .csv file.

My issue is I need to

相关标签:
4条回答
  • 2020-12-13 18:18

    Go to %windir%\system32\inetsrv\fcgiext.ini and locate the ActivityTimeout parameter; copy it into the [php] section. Change the parameter to whatever value you would like, and also make sure that it is not commented out. Restart IIS and you should be good.

    activityTimeout can be also set (IIS7 and above) from the IIS Manager under the server/IIS/FastCGI Settings/Edit.

    0 讨论(0)
  • 2020-12-13 18:22

    For IIS 7.5 you can change the setting of file in

    C:\Windows\System32\inetsrv\config\applicationHost.config

    and find the line below and change as per your requirement

    <fastCgi>
        <application fullPath="C:\PHP\php-cgi.exe" idleTimeout="900" activityTimeout="180" requestTimeout="10000" instanceMaxRequests="10000" />
    </fastCgi>
    

    DO NOT FORGET TO RESTART SERVER

    OR This can be done from UI too:

    Open InetMgr (window+R type Inetmgr and hit enter)

    0 讨论(0)
  • 2020-12-13 18:25

    For Windows Server 2008 R2, the default version of IIS that is supplied is IIS 7.5. The solution Dave suggested will not work because that file isn't there.

    Instead, try %windir%\system32\inetsrv\config\applicationHost.config to set up the options for the entire server. Look at the <fastCgi> block:

    <fastCgi>
        <application fullPath = "C:\php\php-cgi.exe" arguments = "" 
            monitorChangesTo = "" stderrMode = "ReturnStdErrIn500" maxInstances = "4"
            idleTimeout = "300" activityTimeout = "30" requestTimeout = "90" 
            instanceMaxRequests = "5000" protocol = "NamedPipe" queueLength = "1000" 
            flushNamedPipe = "false" rapidFailsPerMinute = "10">
            <environmentVariables>
                <environmentVariable name="PHP_MAX_REQUESTS" value="5000" />
            </environmentVariables>
        </application>
    </fastCgi>
    

    Remember to restart your webserver.

    I set the activityTimeout to 90 and requestTimeout to 270 to give processes more time to finish their work. This wasn't enough for my problem, but it should at least allow people to find the relevant bits on IIS 7.5.

    0 讨论(0)
  • 2020-12-13 18:29

    activityTimeout can be also set (IIS7 and above) from the IIS Manager under the server/IIS/FastCGI Settings/Edit.

    0 讨论(0)
提交回复
热议问题