470,855 Members | 1,318 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

error_log not working

Hi Group,

I cannot log errors for some reason.

Situation: PHP 5.0 ISAPI on W2000 IIS 5.0

In php.ini:

error_reporting = E_ALL
log_errors = On
error_log = C:\php\myerrorlog.log
From some script:
<?
echo 8/0;
?>

But my file stays empty.

To test if I had some permissionproblem:

error_log("testerror",3,"C"\php\myerrorlog.log");

But that worked: The text "testerror" appeared in the logfile.

What else could be wrong?

TIA

Regards,
Erwin Moller
Jan 9 '06 #1
2 2871
I get exactly the same problem with PHP 4.0 and IIS6.0 on 2003 Server. I have been going round and round in circles for days but still haven't got anywhere. Sorry to not be any help (yet) but I am working on it.
Feb 9 '06 #2
wayde
1
I get exactly the same problem with PHP 4.0 and IIS6.0 on 2003 Server. I have been going round and round in circles for days but still haven't got anywhere. Sorry to not be any help (yet) but I am working on it.
It is a permissions problem. Windows Server 2003 is blocking access to the application event log for some users by default. To fix this I needed to edit the registry. This article tells you what to do:

http://support.microsoft.com/default...b;en-us;323076

Essentially you just need to change the permissions string for one key value and then it works like a charm!
Feb 10 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Martin Heuckeroth | last post: by
5 posts views Thread by tshad | last post: by
8 posts views Thread by jojobar | last post: by
2 posts views Thread by Don | last post: by
1 post views Thread by mydejamail | last post: by
Odisey
4 posts views Thread by Odisey | last post: by
5 posts views Thread by Pseudonyme | last post: by
5 posts views Thread by August Karlstrom | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.