ID:               28988
 Comment by:       msisolak at yahoo dot com
 Reported By:      mgilbert at kcm dot org
 Status:           Open
 Bug Type:         IIS related
 Operating System: Windows Server 2003
 PHP Version:      4.3.7
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[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?

------------------------------------------------------------------------

[2004-07-01 22:47:28] mgilbert at kcm dot org

Description:
------------
This error was orrigionally logged at an IIS forum. The Forum
administrator had the same problem and sugested that we logg this error
on the PHP web site. Below is some of the text from our origional
message. This is the link to the origional message:

http://www.iis-resources.com/modules/newbb/viewtopic.php?topic_id=1560&forum=5


We recently migrated a website from Windows 2000 to Windows 2003 using
the iis 6.0 Migration tool provided by Microsoft.

PHP is installed and seems to work fine with the exception of a
challenge one of my developers approached me with recently. This
function works fine on Windows 2000, but doesn't on Windows 2003. He
has some code to log errors to the system event log but the events are
not getting logged.

We have logging enabled in the PHP.ini :
; Log errors to syslog (Event Log on NT, not valid in Windows 95).
error_log = syslog

I've attempted giving IUSR_website account more permissions on the box
(including administrative rights for a very short period of time to
make sure that NTFS permissions are not blocking anything)

Any information you could provide would be greatly appreciated.
Thanks,


Reproduce code:
---------------
if ($priority <> "")

{

openlog("Website", LOG_ODELAY, LOG_USER);

syslog($priority, $error_log);

closelog();

}

Expected result:
----------------
It should log an event in the event Windows Event Viewer.

Actual result:
--------------
Did not log the event.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28988&edit=1

Reply via email to