Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I encounter an error in a PHP site running on my local IIS7 error, I just get a blank page. I have tried disabling the "Show friendly HTTP errors" option in IE.

In my PHP.ini, the display_errors = On is enabled. In my script, I have the following set:


I'm not sure why IIS is still not showing the errors? Is there anything I'm missing?

Edit: To be clear, I DO know there is an error. IIS7 is just not displaying the error, and seems to be suppressing it. I even tried enabling "PassThrough" errors via the command line for this site, but that didn't help either.

share|improve this question

migrated from May 31 '11 at 14:08

This question came from our site for professional and enthusiast programmers.

isit showing any other kind of errors? – Ibu May 31 '11 at 5:54
No, the page is completely blank – Donniel Thomas May 31 '11 at 5:56
try to purposely add a syntax error or a Fatal by calling an undefined function – Ibu May 31 '11 at 5:58
up vote 1 down vote accepted

Try use this way:

error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);

The display_errors is boolean value, i think it can not set to 'On'.

Other thing is to install PHP Manager for IIS and then configure error reporting with this plugin, set it to development machine.

share|improve this answer

Ever tried something like apache? It was built specifically to run something like PHP and it configures way easier. Thats one thing I see with AGILE web development. Most of the time you do not have the luxury time to setup and config your tools it just has to run of the bat.

I also fount this on serverfault :

Maybe your question is better based there? Also this might be of help : Impossible to show errors with PHP under IIS7.5

I hope I helped you with finding your error.

share|improve this answer
Hey, I did eventually set up XAMPP, which solves my problem. However, I'd like to leave this question open, in case somebody else has the same problem. I will check out the ServerFault thread, and see if that helps. – Donniel Thomas May 31 '11 at 19:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.