Avatar of rgb192
rgb192
Flag for United States of America asked on

C:\php\php-cgi.exe - The FastCGI process exceeded configured activity timeout

HTTP Error 500.0 - Internal Server Error
C:\php\php-cgi.exe - The FastCGI process exceeded configured activity timeout

i created the handler, in iis7 manager and it is using fastcgi,
I see this browser error in a couple seconds if file has alot of data

this file inserts data from a textfile into a database
so if there are many rows in textfile, then file wont run
Microsoft IIS Web ServerPHPWeb DevelopmentWeb Servers

Avatar of undefined
Last Comment
rgb192

8/22/2022 - Mon
Dave Baldwin

That's a Server error, not a Browser error.  Check the PHP execution time limit in 'php.ini' and/or any execution limits in IIS.
rgb192

ASKER
how to change in fastcgi iis7
because php.ini says
max_execution_time = 400
memory_limit = 1028M
Dave Baldwin

With that much time and memory, you need to find out what is going on in your PHP code.  Maybe your text file is too big and you need to break it into pieces.  In any case, you need to have a good PHP programmer fix it for you.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
rgb192

ASKER
php code was working on another server

I am sure that it is a fastcgi problem
Dave Baldwin

It might be.  I suggest you click on "Request Attention" and get some others to look at your question.  Maybe they will have some suggestions.
ASKER CERTIFIED SOLUTION
Brad Howe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
rgb192

ASKER
it is changed to 600
I dont know how to provide output because I can not find the file
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Brad Howe

Can't find what file? - Hades666
rgb192

ASKER
i cant give you the file
%windir%\system32\inetsrv\appcmd list config -section:system.webServer/fastCgi
because I can not find it

I am editing something that looks like the file using iis7
but I am clicking with a mouse and see textboxes and not a file
Brad Howe

I don't want the file. I want to see the executed output from commandline.
Appcmd is an exe that is used to configure IIS from command line.
What that comannd does is print out the php settings onp your server which are stored in the application.config

Cheers,Hades666
Your help has saved me hundreds of hours of internet surfing.
fblack61
rgb192

ASKER
C:\Windows\System32\inetsrv>appcmd list config -section:system.webServer/fastCgi

<system.webServer>
  <fastCgi>
    <application fullPath="C:\php\php-cgi.exe" arguments="" monitorChangesTo=""
stderrMode="ReturnStdErrIn500" maxInstances="4" idleTimeout="300" activityTimeou
t="600" requestTimeout="90" instanceMaxRequests="10000" protocol="NamedPipe" que
ueLength="1000" flushNamedPipe="false" rapidFailsPerMinute="10">
      <environmentVariables>
      </environmentVariables>
    </application>
  </fastCgi>
</system.webServer>
rgb192

ASKER
is this the correct output


C:\Windows\System32\inetsrv>appcmd list config -section:system.webServer/fastCgi

<system.webServer>
  <fastCgi>
    <application fullPath="C:\php\php-cgi.exe" arguments="" monitorChangesTo=""
stderrMode="ReturnStdErrIn500" maxInstances="4" idleTimeout="300" activityTimeou
t="600" requestTimeout="90" instanceMaxRequests="10000" protocol="NamedPipe" que
ueLength="1000" flushNamedPipe="false" rapidFailsPerMinute="10">
      <environmentVariables>
      </environmentVariables>
    </application>
  </fastCgi>
</system.webServer>
rgb192

ASKER
thanks, this fixed most of my problems
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.