Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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:

error_reporting(E_ALL);
ini_set('display_errors','On');

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
    
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
add comment

migrated from stackoverflow.com May 31 '11 at 14:08

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

2 Answers

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
add comment

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.

http://www.apache.org/

I also fount this on serverfault : http://serverfault.com/questions/19561/how-can-i-display-and-log-php-errors-on-iis7

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
add comment

Your Answer

 
discard

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.