diff --git a/scripts/jobs/cron_tasks.inc.http.10.apache.php b/scripts/jobs/cron_tasks.inc.http.10.apache.php index 0c0fb692..1ce6cdfa 100644 --- a/scripts/jobs/cron_tasks.inc.http.10.apache.php +++ b/scripts/jobs/cron_tasks.inc.http.10.apache.php @@ -1125,6 +1125,11 @@ class apache $this->wipeOutOldDiroptionConfigs(); } } + else + { + // no more diroptions, but there might be some file-corpses which have to be removed + $this->wipeOutOldDiroptionConfigs(); + } // Write htpasswds @@ -1160,6 +1165,11 @@ class apache $this->logger->logAction(CRON_ACTION, LOG_WARNING, 'WARNING!!! ' . $this->settings['system']['apacheconf_htpasswddir'] . ' is not a directory. htpasswd directory protection is disabled!!!'); } } + else + { + // no more htpasswds, but there might be some file-corpses which have to be removed + $this->wipeOutOldHtpasswdConfigs(); + } // Write virtualhosts diff --git a/scripts/jobs/cron_tasks.php b/scripts/jobs/cron_tasks.php index 80ed842c..63a49c1e 100644 --- a/scripts/jobs/cron_tasks.php +++ b/scripts/jobs/cron_tasks.php @@ -68,7 +68,7 @@ while($row = $db->fetch_array($result_tasks)) { $awstatsclean['dir'] = dir($awstatsclean['path']); while($awstatsclean['entry'] = $awstatsclean['dir']->read()) { - $awstatsclean['fullentry'] = $awstatsclean['path'].'/'.$awstatsclean['entry']; + $awstatsclean['fullentry'] = makeCorrectFile($awstatsclean['path'].'/'.$awstatsclean['entry']); /** * dont do anything if the file does not exist */