Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st August 2006, 09:38
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default Accesslog daily rotation...

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 Code:
$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 by Ben; 1st August 2006 at 10:05.
Reply With Quote
Sponsored Links
  #2  
Old 1st August 2006, 10:50
fobicodam fobicodam is offline
Senior Member
 
Join Date: Apr 2006
Location: Argentina
Posts: 346
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to fobicodam
Default

This works great on my servers.

http://www.howtoforge.com/forums/showthread.php?t=5763

The problem will persist when some individual domain reach the 2Gb limit log file...
Reply With Quote
  #3  
Old 1st August 2006, 10:58
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
 
Default

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

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
log files, rotation and emailing them hairydog2 General 65 11th October 2006 13:18


All times are GMT +2. The time now is 18:52.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.