Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 26th December 2010, 14:14
SupuS SupuS is offline
HowtoForge Supporter
Join Date: May 2006
Posts: 202
Thanks: 68
Thanked 14 Times in 12 Posts
Default Exclude log size from web space statistics

With setting

$go_info["server"]["perms_root"]["logs"] = true;
in config file config.inc.php we are able to exclude logs from web quota. But if customer use website space statistics ispconfig still shows statistics with log files size included.

This behaviour we can easily change by modifying "du" command in file:

on line 61 or 63 (if you are not use sudo for generating stats). You have to add --exclude=log after --max-depth=1 directive as follows:

$fd = popen ("sudo du -h --max-depth=1 --exclude=log ".$path_httpd_root."/web".$web_id, "r");
This is dirty hack only. This behaviour should depend on other system variables. I created feature request for this so you can vote for it:


I hope it will help somebody


Last edited by SupuS; 26th December 2010 at 14:17.
Reply With Quote
The Following 2 Users Say Thank You to SupuS For This Useful Post:
falko (27th December 2010), till (26th December 2010)
Sponsored Links


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
get thousands of "Mailsize" mails from own server torusturtle Installation/Configuration 20 24th December 2006 15:51
Users Web Space toyito Installation/Configuration 1 31st May 2006 20:20
roundcube mail and pop3 display name prob. - bw and web space probs. didan Installation/Configuration 2 24th May 2006 08:39
Users web space with SuSE and Apache ggouts Server Operation 1 6th March 2006 12:40
Log files - eating up my space hagel General 3 19th December 2005 11:05

All times are GMT +2. The time now is 22:44.

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