Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Feature Requests

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th November 2014, 14:12
fmapelli fmapelli is offline
Junior Member
 
Join Date: Nov 2014
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
 
Default Managing Log Rotator webserver

Good Morning,
I had to increase the log rotator from 30 to 60 days, by modifying directly the "cron_daily.php" file, specifically the following lines:
513 $month_ago = date('Ymd', time() - 86400 * 60);
520 $datepart = date('Ym', time() - 86400 * 61 * 2);
532 exec('cd /var/log/ispconfig/httpd/'.$tmp_hostname[0]."; find . -mtime +60 -name '*.log' | xargs rm > /dev/null 2> /dev/null");

Is it possibile to include this parameter into the configuration (via web or file) for the next version instead of modifying the lines?

Thanks
Francesco
Reply With Quote
The Following User Says Thank You to fmapelli For This Useful Post:
mccharlet (12th November 2014)
Sponsored Links
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
SMTP error Dovecot postfix aberrio Server Operation 26 3rd February 2011 15:25
MyDNS Segfaults crypted General 19 22nd July 2010 23:49
FTP Problems wabz Installation/Configuration 6 11th January 2010 19:51
Unable to receve email aberrio Server Operation 16 8th July 2009 11:26
slow download through webserver problem snewp Technical 14 9th May 2008 06:25


All times are GMT +2. The time now is 21:31.


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