IIS 7.5 with PHP 5.3, displaying errors on page

Posted by dreamlax on Server Fault See other posts from Server Fault or by dreamlax
Published on 2012-03-31T08:24:22Z Indexed on 2012/03/31 11:33 UTC
Read the original article Hit count: 226

Filed under:
|

I'm running Windows Server 2008 R2, with IIS 7.5 and PHP 5.3 (configured by FastCGI). In my php.ini I have:

log_errors = On
display_errors = Off
error_log = syslog      (also tried an actual file with appropriate permissions)

Each time a page contains an error, it is never logged anywhere, but it is displayed on the page (unless I turn log_errors off). I'm guessing that the stderr from php-cgi.exe is being put on the page, instead of being logged where it is supposed to be. Is there a setting somewhere that allows me to log these errors properly?

© Server Fault or respective owner

Related posts about php

Related posts about iis