ID: 28988 Updated by: [EMAIL PROTECTED] Reported By: mgilbert at kcm dot org Status: Feedback Bug Type: IIS related Operating System: Windows Server 2003 PHP Version: 4.3.7 New Comment:
Of course, it could just be tighter security; check that first, but be warned that there are some thread safety issues in the syslog implementation in all current stable releases of PHP. Previous Comments: ------------------------------------------------------------------------ [2004-07-29 05:03:11] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip I fixed some thread safety issues with the syslog emulation we use on win32. Please try the next PHP 5.1 (unstable) snapshot dated after this message; if you report the issue as resolved, we can investigate back-porting the changes. ------------------------------------------------------------------------ [2004-07-29 05:02:24] msisolak at yahoo dot com It sounds like the tighter security settings of Server 2003 are blocking the event logging requests when run from within IIS. Here is a pretty good summary of the issue and how to configure your server so that the IUSR account has Event Viewer write permissions: http://groups.google.com/groups?selm=522a7f75.0401211515.21e9d40e%40posting.google.com There is also this basic summary of the issues from Microsoft: http://support.microsoft.com/default.aspx?scid=kb;en-us;323076 ------------------------------------------------------------------------ [2004-07-28 21:33:31] mgilbert at kcm dot org OK We just tried the test. I wrote a simple PHP script that logs and event and echos the message to the screen. When we run that PHP script from the command line interface it loggs the event to the event viewer. When we run the same script from a Web Browser it does not logg the event to the event viewer. We have checked all of the security settings, in fact temporarily they gave IIS Admin privaliges and it still did not logg to the event viewer. ------------------------------------------------------------------------ [2004-07-27 23:06:13] mgilbert at kcm dot org I am working with one of our guys in our DCAT dept to test this (I do not have admin rights). I will let you know the results. Thank you for responding ------------------------------------------------------------------------ [2004-07-27 17:58:19] msisolak at yahoo dot com If you run a script with the code snippet you have interactively from a command prompt (logged in as a Administrator user) is it able to write to the Event Log? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28988 -- Edit this bug report at http://bugs.php.net/?id=28988&edit=1