Log file not being trimmed

Discussion in 'General' started by hairydog2, Feb 12, 2006.

  1. hairydog2

    hairydog2 Member

    Most of the web logs are OK, but one is getting bigger and bigger each day.

    The site in question is web38 and so I guess that these error messages from webalizer's script output are part of the problem. The bit starting Warning: is repeated several times before the script finishes running.

    line 167 of the webalizer.php file is

    closedir($dirstream);

    This is the error:

    Array
    (
    [/home/www/web38/log/.no_delete] => 1132433862
    )

    Warning: closedir(): supplied argument is not a valid Directory resource in /root/ispconfig/scripts/shell/webalizer.php on line 167
    Array
    (
    [/home/www/web38/log/.no_delete] => 1132433862
    [/home/www/web38/log/error.log] => 1139779256
    )


    How can I fix this?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Please post the output of
    Code:
    ls -la /home/www/web38/log
     
  3. hairydog2

    hairydog2 Member

    ls -la /home/www/web38/log
    total 436
    drwxr-xr-x 3 stovesareus web38 4096 Feb 12 01:14 .
    drwxr-xr-x 10 stovesareus web38 4096 Feb 12 21:01 ..
    -r-------- 1 stovesareus web38 0 Nov 19 20:57 .no_delete
    drwxr-xr-x 3 stovesareus web38 4096 Feb 2 21:06 2006
    -rw-r--r-- 1 stovesareus web38 427399 Feb 13 20:40 error.log
    lrwxrwxrwx 1 stovesareus web38 51 Feb 2 00:30 web.log -> /home/www/www.stovesareus.co.uk/log/2006/02/web.log
     
  4. hairydog2

    hairydog2 Member

    Any ideas?
     

Share This Page