View Single Post
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 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
Sponsored Links