Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm used to serving sites from Apache, but am now forced to use an IIS server.

A number of my PHP pages are returning error 500 and I can't debug because IIS is suppressing the error messages. I've tried ini_set('display_errors',1); in code but to no avail.

Errors are shown on some sites but not the one in particular that I want to debug so I don't think it is a global PHP setting, but rather something to do with the site settings for that site.

I can't find a clear answer as to how to enable displaying PHP errors.

I've found this link but am not sure where to find "system.webServer->httpErrors".

How can I enable displaying errors in PHP under IIS?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

How about logging them instead?

Edit php.ini and set

error_reporting = E_ALL & ~E_NOTICE
log_errors = On

And either

error_log = syslog to log to the Windows Event log, or

error_log = location/of/logfile to log to a file.

share|improve this answer
I have error_reporting, log_errors, and error_log all configured this way, but it's still not logging errors for the Joomla site. This site was copied down from an Apache server. I imported the .htaccess rules into IIS 7.5; but alas, it's still failing. Do you by chance have any idea what else I might need to look into? – Michael Perrenoud Nov 15 '13 at 14:05

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.