I have a website on IIS. The website runs PHP. When an error occurs in PHP, the error should appear in the Windows Event Log (because the error_log
setting in php.ini
is set to syslog
).
If the anonymous user uses the IUSR
account, the error does not appear in the event log. If the anonymous user uses the Application Pool Identity
account, the error does appear in the event log.
Why can the Application Pool Identity
account write to the event log, but the IUSR
account not? Note that PHP is not writing to a custom source. Also note that the IUSR
account is in the IIS_IUSRS
account, which has full access to the Application Source of the Windows Event Log.