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.

migrated from stackoverflow.com 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
  • 1
    try to purposely add a syntax error or a Fatal by calling an undefined function – Ibu May 31 '11 at 5:58

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.


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 : How can I display and log PHP errors on IIS7?

Maybe your question is better based there? Also this might be of help : https://stackoverflow.com/questions/3151937/impossible-to-show-errors-with-php-under-iis7-5

I hope I helped you with finding your error.

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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