#28988 [Com]: Syslog NOT logging Errors to the Event Viewer
| From: | msisolak at yahoo dot com | Date: | Tue, 27 Jul 2004 15:58:20 +0000 |
| Subject: | #28988 [Com]: Syslog NOT logging Errors to the Event Viewer | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63634@lists.php.net to get a copy of this message | ||
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:
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?
Previous Comments:
------------------------------------------------------------------------
[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