View Single Post
  #6  
Old 18th November 2008, 17:31
astewart astewart is offline
Member
 
Join Date: Feb 2007
Posts: 95
Thanks: 1
Thanked 7 Times in 7 Posts
Default

Quote:
Originally Posted by till View Post
Please do not mix up the webalizer cronjob in of the linux system with the one used by ispconfig. The ispconfig webalizer cronjob creates it, not the one in /etc/cron.daily/. All ispconfif cronjobs are in the root crontab.

I just noticed that ispconfig has a cron_daily.sh located in '/usr/local/ispconfig/server/'. This kicks off the cron_daily.php which is also in the same location.

I have verified the Webalizer section and there is no mention of the creation of the .htaccess file:

Code:
#######################################################################################################
// Create webalizer statistics
#######################################################################################################


$sql = "SELECT domain_id, domain, document_root FROM web_domain WHERE server_id = ".$conf["server_id"];
$records = $app->db->queryAllRecords($sql);
foreach($records as $rec) {
        $yesterday = date("mdY",time() - 86400);
        $logfile = escapeshellcmd($rec["document_root"].'/log/'.$yesterday.'-access.log');
        if(@is_file($logfile)) {
                $domain = escapeshellcmd($rec["domain"]);
                $statsdir = escapeshellcmd($rec["document_root"].'/web/stats');
                $webalizer = '/usr/bin/webalizer';
                $webalizer_conf = '/etc/webalizer/webalizer.conf';
                if(!@is_dir($statsdir)) mkdir($statsdir);
                exec("$webalizer -c $webalizer_conf -n $domain -s $domain -r $domain -q -T -o $statsdir $logfile");
        }
}
The /etc/webalizer/webalizer.conf file didn't see to have any helpful information either.
Reply With Quote