0

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.

user648336
  • 27
  • 4

1 Answers1

0

You can modify event log access rights to allow IUSR access to write events in a log.

Check this article for more information: https://learn.microsoft.com/en-us/troubleshoot/windows-server/group-policy/set-event-log-security-locally-or-via-group-policy

J-M
  • 1,930
  • 1
  • 11
  • 17
  • I read the article, and I don't get it. – user648336 Jan 26 '23 at 22:31
  • Actually, I understand it now. So, I need to modify that weird string of text to allow anonymous users to write to the event log. I'm not going to do that, as it's too weird. I'm just going to use the application pool identity. – user648336 Jan 27 '23 at 02:29
  • So I can't use the application pool identity, because my site needs to access a share in our AD domain, and ACLing each machine to the share is too much work... So i am just not going to use the event log.... – user648336 Jan 29 '23 at 02:39