Not writing to error.log

Discussion in 'General' started by Hotwire, Mar 31, 2007.

  1. Hotwire

    Hotwire New Member

    My error log was absolutly full, so I deleted everything in it. I then noticed that the errors were no longer being written in it, so I deleted the file completely. Then I set the permissions, owner and group. And the site errors are still not being written to the error.log file.

    Can any one help me with this?
     
  2. mlz

    mlz New Member

    Have you restarted apache? This needs to be done if you change or truncate it's log files.
     
  3. safoo

    safoo New Member

    Hotwire did you find the solution to this?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Jou must restart the apache webserver as mlz posted.
     
  5. safoo

    safoo New Member

    Actually my problem is that one of my domain's error.log is not being updated. The apache2 error.log is just fine. Is it a permissions issue?

    This user's error.log works:
    Code:
    # ls -l
    total 576
    drwxr-xr-x 3 webXX_ webXX   4096 2006-12-22 00:30 2006
    drwxr-xr-x 8 webXX_ webXX   4096 2007-06-02 00:30 2007
    -rw-r--r-- 1 webXX_ webXX 574112 2007-06-07 07:14 error.log
    lrwxrwxrwx 1 webXX_ webXX     46 2007-06-02 00:30 web.log -> /home/www/www.----.com/log/2007/06/web.log
    
    This user's doesn't:
    Code:
    root@server:/home/www/webXX/log# ls -l
    total 8
    drwxr-xr-x 5 webXX_ webXX 4096 2006-12-02 00:30 2006
    drwxr-xr-x 8 webXX_ webXX 4096 2007-06-02 00:30 2007
    -rw-r--r-- 1 webXX_ webXX   0 2007-06-06 10:13 error.log
    lrwxrwxrwx 1 webXX_ webXX   49 2007-06-02 00:30 web.log -> /home/www/www.----2.net/log/2007/06/web.log
    
     
    Last edited: Jun 7, 2007
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    It does not matter if one or more error logs are not working. If you deleted a logfile, you must resatrt apache afterwards.

    Also you created the error log as root user, so the apache webserver can not update it. Delete the error logfile and let apache recreate it.
     
  7. safoo

    safoo New Member

    That seems to have worked. Even though apache created the error.log as root user, it is still writing the php errors and such to the file.

    Thanks again.
     

Share This Page