I have followed all your instructions on setting up FastCGI (latest version) on IIS 6 and PHP version 5.3.2 and my production server (Win 2003) is up and operational. The problem I am experiencing is that I get approximately 12 - 20 FastCGI Errors per day.
The error we get is this:
FastCGI Error
The FastCGI Handler was unable to process the request.
Error Details:
The FastCGI process exited unexpectedly
Error Number: -2147467259 (0x80004005).
Error Description: Unspecified error
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
I have downloaded the Process Monitor and I do not see anything nefarious in the log with about Access Restrictions and I have yet to be able to trap the system when it fails with the above error. I have also found that it is completely random when we receive
these errors.
As far as time-outs and MaxRequests are concerned, I have the php.ini file max_execution_time = 2400 and this is the fcgiext.ini file has the following entries:
Can you check your Windows Event Viewer and see if there is a crash with respect to process named php-cgi.exe. Please see what is there in the event log.
Okay, it's bit strange that faulting module is coming as unknown. But this means that php-cgi.exe is crashing. Can you try PHP5.2.13 and see if the crash disappears.
I changed to PHP 5.2.13 and I still get have php-cgi.exe crashing - what is interesting is taht the memory address is exacly the same. Here is the entry in the event log:
Faulting application php-cgi.exe, version 5.2.13.13, faulting module unknown, version 0.0.0.0, fault address 0x4a756b45.
I am not sure why faulting module is coming as unknown. Your best bet is to take a crash dump and share it with me as well as report a bug at
http://bugs.php.net.
Similar error here, using PHP 5.3.8 on Windows 2003, IIS 6. I found this thread by googling "0x4a756b45". Has the problem been solved?
The error in my event log is: Faulting application php-cgi.exe, version 5.3.8.0, faulting module unknown, version 0.0.0.0, fault address 0x4a756b45.
The error occurs intermittently with a simple PHP script whose ONLY function is to retrieve one value from a database on Microsoft SQL Server 2000 (for monitoring purposes).
MikeChar5
8 Posts
Intermitent FastCGI Error 500
Jul 12, 2010 11:09 PM|LINK
I have followed all your instructions on setting up FastCGI (latest version) on IIS 6 and PHP version 5.3.2 and my production server (Win 2003) is up and operational. The problem I am experiencing is that I get approximately 12 - 20 FastCGI Errors per day. The error we get is this:
FastCGI Error
The FastCGI Handler was unable to process the request.Error Details:
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
I have downloaded the Process Monitor and I do not see anything nefarious in the log with about Access Restrictions and I have yet to be able to trap the system when it fails with the above error. I have also found that it is completely random when we receive these errors.
As far as time-outs and MaxRequests are concerned, I have the php.ini file max_execution_time = 2400 and this is the fcgiext.ini file has the following entries:
[PHP]
ExePath=c:\php\php-cgi.exe
InstanceMaxRequests=10000
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000,PHPRC:C:\php\
ActivityTimeout=2400
RequestTimeout=600
I am at a loss for what else to check, anyone have any ideas?
0x80004005 IIS 6 fastcgi PHP 5.3.2
don.raman
1207 Posts
Microsoft
Moderator
Re: Intermitent FastCGI Error 500
Jul 13, 2010 01:19 AM|LINK
Can you check your Windows Event Viewer and see if there is a crash with respect to process named php-cgi.exe. Please see what is there in the event log.
Thanks,
Don.
MikeChar5
8 Posts
Re: Intermitent FastCGI Error 500
Jul 14, 2010 05:24 AM|LINK
Don
Every event in the log is the same:
Faulting application php-cgi.exe, version 5.3.2.0, faulting module unknown, version 0.0.0.0, fault address 0x4a756b45.
don.raman
1207 Posts
Microsoft
Moderator
Re: Intermitent FastCGI Error 500
Jul 14, 2010 05:32 AM|LINK
Okay, it's bit strange that faulting module is coming as unknown. But this means that php-cgi.exe is crashing. Can you try PHP5.2.13 and see if the crash disappears.
You should also try taking a crash dump as outlined at http://bugs.php.net/bugs-generating-backtrace-win32.php and file a bug at http://bugs.php.net.
Thanks,
Don.
don.raman
1207 Posts
Microsoft
Moderator
Re: Intermitent FastCGI Error 500
Jul 14, 2010 05:50 AM|LINK
Hi,
One more thing. If you want to stick to PHP5.3.2 try enabling only extensions which are must for running your application and see if the crash goes.
Thanks,
Don.
MikeChar5
8 Posts
Re: Intermitent FastCGI Error 500
Jul 14, 2010 05:54 PM|LINK
The only 2 extensions I have running are curl and gd2. I will try and run 5.2.13 and see if there is an improvement.
Thanks
Mike
MikeChar5
8 Posts
Re: Intermitent FastCGI Error 500
Jul 14, 2010 09:45 PM|LINK
Don
I changed to PHP 5.2.13 and I still get have php-cgi.exe crashing - what is interesting is taht the memory address is exacly the same. Here is the entry in the event log:
Faulting application php-cgi.exe, version 5.2.13.13, faulting module unknown, version 0.0.0.0, fault address 0x4a756b45.
don.raman
1207 Posts
Microsoft
Moderator
Re: Intermitent FastCGI Error 500
Jul 14, 2010 10:00 PM|LINK
Hi,
I am not sure why faulting module is coming as unknown. Your best bet is to take a crash dump and share it with me as well as report a bug at http://bugs.php.net.
Thanks,
Don.
Dolphyn
1 Post
Re: Intermitent FastCGI Error 500
Jan 27, 2012 08:54 PM|LINK
The error in my event log is: Faulting application php-cgi.exe, version 5.3.8.0, faulting module unknown, version 0.0.0.0, fault address 0x4a756b45.
The error occurs intermittently with a simple PHP script whose ONLY function is to retrieve one value from a database on Microsoft SQL Server 2000 (for monitoring purposes).
Thanks!
HCamper
8048 Posts
Re: Intermitent FastCGI Error 500
Jan 30, 2012 11:06 AM|LINK
Hello,
The Topic Thread- are old-"Problems and issues related to-PHP errors or "Intermitent FastCGI Error 500" is a complex problem.
Personal Suggestions and options:
Personal suggestion: Report the issues and problems to the PHP Bugs site https://bugs.php.net/ with version and Windows information.
Personal Suggestion: You can open a Support case with Microsoft Support http://support.microsoft.com/ the Experts
will help gathering the required information to try and reproduce and isolate and test to pinpoint the root causes.
Please contact Microsoft Support for more advise. http://support.microsoft.com/
Regards,
Martin
Community Member Award 2011