I've set up IIS6 with FastCGI to use php-cgi.exe.
I have some php websites by external parties, that I'm trying to run in a test environment.
One of the websites just plain gives me a FastCGI Error Page. This does not happen on every page, it just seems to happen on some pages, while others are displayed correctly.
- Question: Is there some way to enable logging somewhere so that I can get a bit more information on this problem?
I have looked in
- IIS Website log (c:\windows\system32\Logfiles)
- PHP log
But no results, except the IIS Website log mentions a return of a 500 page.
- Question: Is there any other way to debug/check where things might be going wrong?
Here is what the page looks like:
The FastCGI Handler was unable to process the request. Error Details:
The FastCGI process exited unexpectedly Error Number: -1073741571 (0xc00000fd). Error Description: Unknown Error HTTP Error 500 - Server Error. Internet Information Services (IIS)
Apparently, the error message means Stack Overflow, so debugging is the message. I'm not a PHP developer, so this was a pretty painful process. However we narrowed down the problem to an Ajax request, but I guess this could be happening with any sort of request:
The request itself causes the server to return a 500. After trying out the request with Fiddler, we found that Cookie entry in the GET request contains a PHPSESSID item. When leaving this out, the request does work.
So the answer to this problem (in our case) is leaving out the PHPSESSID from the request. Now all that's left is figuring out how to do that :)