View Single Post
  #17  
Old 10th October 2010, 14:04
lizzarde lizzarde is offline
Junior Member
 
Join Date: Oct 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the same problem as in previous two posts. The Webalizer gets stats OK but the ispconfig_acces_log files after that are not purged. After running through the code I found where may be the problem:

line 165 in logs.php:
Code:
if (preg_match('/^'.basename($dir).'_/', $file)) {
change to this code:
Code:
if (preg_match('/^ispconfig_access_log_/', $file)) {
Now the script gets old logs filenames correctly and delete them.
Reply With Quote