Accesslog daily rotation...

Discussion in 'Developers' Forum' started by Ben, Aug 1, 2006.

  1. Ben

    Ben Active Member Moderator

    Referring to that thread: http://www.howtoforge.com/forums/showthread.php?p=35464

    Well I took a look at both scripts...
    at first I would say the mainrproblem comes from the logs.php cause of eventually opening a file > 2GB....

    But at first why does the logs.php opens a file like ispconfig_access_log_... instead of the symlink because that is the actual one?

    Does the cron run logs.php every 12 hours or why do you reduce time() with 43200 secs?


    Edit:
    What does these lines do, they only exists once...
    PHP:
    $tag   date("d", (time() - 43200));
    $monat date("m", (time() - 43200));
    $jahr  date("Y", (time() - 43200));
    EDIT2: My idea would be to change the logscript, rotating in the "monthdir"... the webalizerscript than scans for this files an calls webalizer for each file. Or are there any problems with that idea?
     
    Last edited: Aug 1, 2006
  2. fobicodam

    fobicodam New Member

  3. Ben

    Ben Active Member Moderator

    Ah ok, so there is no more need to do anything here...
     

Share This Page