When you install a php into IIS7 and try to execute phpinfo() script you can get an HTTP 500 Internal Server Error message. The most probably cause of this is that php-cgi.exe program is writing some text to stderr. By default IIS7 displays an HTTP 500 error message when it detects such behavior even, when the CGI displayed only a warning message on stderr. To avoid this problem you have to change default error handling for FastCGI in IIS7.
To do this follow the following steps:
- Start IIS Manager
- Click on <server name> and then in the right pane go to “FastCGI Settings”.
- Right click on php-cgi.exe file and choose “Edit…”.
- Set the “Standard error mode” option to “IgnoreAndReturn200” value.
- Click OK and close IIS Manager.
After performing mentioned steps you shall no longer see HTTP 500 error messages in the browser.
Really thanks, now it works fine.
Boom! Exactly what I needed. Thanks, man.
You rock, this was exactly what I needed. Thank you!
Thanks dude, after googling for two days.