show php error message on IIS 7
Posted
by Max
on Server Fault
See other posts from Server Fault
or by Max
Published on 2009-09-30T06:00:42Z
Indexed on
2010/03/19
3:11 UTC
Read the original article
Hit count: 281
I am using IIS as a webserver on my development machine for PHP webdevelopment. Or at least, I am trying to.
When there is a syntax error in a PHP script and I open that file in my webbrowser, I just get an 503 "internal server error" and the default IIS error page for this error. Some browsers dont open that file at all, possibly because of the 503 HTTP Response Header.
I would like IIS to act in that case just like the apache webserver: display the PHP file with the error anyway, so that the error message gets printed out.
How can this be done?
EDIT:
PHP settings:
display_errors
is on and
error_reporting
is set to E_ALL
© Server Fault or respective owner