Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, November 13, 2007 9:41 PM
Hi:
I'm receiving the following error:
FastCGI Error
The FastCGI Handler was unable to process the request.Error Details:
Section [c:\php\php-cgi.exe] not found in config file.
Error Number: 1413 (0x80070585).
Error Description: Invalid index.
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
My fcgiext.ini file (located in c:\windows\system32\inetsrv) contains the following:
[Types]
php=c:\php\php-cgi.exe
php=PHP
;php:495420923=PHP Site www.mysite.com - also tried this setting
PHP is in c:\php and php-cgi.exe is present (and c:\php is in the path).
When Mappings on IIS Application Configuration is set to:
.php c:\php\php5siapi.dll GET,HEAD,POST (site works)
.php c:\windows\system32\inetsrv\fcgiext.dll GET,HEAD,POST (get the error message above)
Any advice?
Thanks,
Mike
All replies (10)
Wednesday, November 14, 2007 4:55 PM âś…Answered
Hi mgagel,
Each error number corresponds to a different group of challenges with a different group of solutions. I wrote a blog on debugging this error: http://blogs.iis.net/rickjames/archive/2007/10/16/fastcgi-debugging-quot-the-fastcgi-process-exited-unexpectedly-quot.aspx
Cheerz,
Rick.
Wednesday, November 14, 2007 12:52 PM
Make your fcgiext.ini look like this and see what happens:
[Types]
php=PHP
[PHP]
ExePath=c:\php\php-cgi.exe
Wednesday, November 14, 2007 4:45 PM
I made your suggested change and received the following error:
FastCGI Error
The FastCGI Handler was unable to process the request.
Error Details:
- The FastCGI process exited unexpectedly
- Error Number: -1073741819 (0xc0000005).
- Error Description: Unknown Error
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
Monday, November 26, 2007 2:30 PM
I'm getting the exact same error, and can't seem to figure it out (runs find from the command line, so I'm assuming it must be FastCGI). Did you ever resolve this? If so, how'd you do it?
My config: IIS 6 / PHP 5.2.5
Monday, November 26, 2007 3:39 PM
Hi nyago,
There are two errors in this thread (0x80070585, 0xc0000005). Which one are you getting?
- If it's 0xc0000005, did the blog post help?
- If it's 0x80070585, can you post the full error message and ensure you're using the RTM version of FastCGI?
Thanks,
Rick.
Monday, November 26, 2007 4:04 PM
Hi Rick,
The exact error that appears is below. I do believe I'm using the RTM version (pub 11/10/07). The blog post helped in that I was able to run PHP from the command line, and it ran ok. Also, FYI, I logged into the server and saw a "CGI / FastCGI encountered an error and needed to close" in the windows interface. The error details from this are: szAppName: php-cgi.exe, szAppVer: 5.2.5.5, szModName: php-cgi.exe, szModVer: 5.2.5.5, offset: 0000183a
Thanks,
Noah
FastCGI Error
The FastCGI Handler was unable to process the request.
Error Details:
- The FastCGI process exited unexpectedly
- Error Number: -1073741819 (0xc0000005).
- Error Description: Unknown Error
HTTP Error 500 - Server Error. Internet Information Services (IIS)
Monday, November 26, 2007 4:36 PM
Hi nyago,
A simple consistent repro makes debugging substantially less painful. Next things to try:
1) Repro while procmon (www.sysinternals.com) is running, compare the successful command line log with the unsuccessful server log
2) Try latest PHP bits from http://snaps.php.net/
3) Try the debugging steps in the blog post and share the resulting call stack :-)
Cheerz,
Rick.
Thursday, November 29, 2007 5:29 PM
Hi Rick. Just FYI, and for those of you out there who run into similar problems, I figured it out.
I did two things during my install: a) upgraded from PHP 5.2.1 to PHP 5.2.5, and replaced ISAP w/ FastCGI. My php.ini config file was calling the php_msql, which hadn't been set up. Not sure if it was the new version of PHP, or FastCGI which didn't like it, but one piece of software called the extension, which wasnt' connected to anything. I suspect it was FastCGI, b/c when I ran PHP from the command line, I didn't have any problems.
In any case, thanks for your help.
Friday, December 28, 2007 7:55 AM
I was experiencing this error when I had pspell extension enabled. I had installed Aspell and added its bin directory to the PATH environment variable, which worked with ISAPI. However for FastCGI I had to copy the 2 dll files that Aspell provides into my PHP installation directory.
Tuesday, January 15, 2008 4:53 PM
Wow...thank goodness I found this thread...I had also upgraded from 5.2.0 to 5.2.5, and migrated from the isapi.dll to fastcgi, and I was getting the fastcgi error above.
When installing 5.2.5, I opted to install all extensions, and the installer enabled all of them in the php.ini file.
I commented out all the extensions and bang! the website began working again...what a relief. I then un-commented each extension 1 by 1 until everything I needed was running...fortunately not too much.