Accesslog daily rotation...

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

  1. Ben

    Ben ISPConfig Developer ISPConfig Developer

    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 ISPConfig Developer ISPConfig Developer

  3. Ben

    Ben ISPConfig Developer ISPConfig Developer

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

Share This Page