error_log not working

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Erwin Moller

    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\myerrorl og.log


    From some script:
    <?
    echo 8/0;
    ?>

    But my file stays empty.

    To test if I had some permissionprobl em:

    error_log("test error",3,"C"\ph p\myerrorlog.lo g");

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

    What else could be wrong?

    TIA

    Regards,
    Erwin Moller
  • jinjoid
    New Member
    • Feb 2006
    • 1

    #2
    Same Problem Different Versions

    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.

    Comment

    • wayde
      New Member
      • Feb 2006
      • 1

      #3
      Had same issue but found solution

      Originally posted by jinjoid
      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:



      Essentially you just need to change the permissions string for one key value and then it works like a charm!

      Comment

      Working...