Problems Computing Site Statistics With Awstats
I am running Advanced Web Statistics 6.5 (build 1.857) (awstats) on a Debian 4.0 server. Until recently, I was successful running statistics with awstats hosting one site on the box. I then started running a second site, and have not been successful in getting the statistics computed for the new site as a cron job as root (I could with the first site without incident). The only way I can obtain statistics for the new site is manually while logged on as root.
I thought permissions was the issue, but the scripts in the /etc/cron.daily directory have the same permissions. I created a script for each of the sites, called awstats-update-site001 for the old site and awstats-update-site002 for the new site. The contents of awstats-update-site001 are as follows:
/usr/local/awstats/tools/awstats_buildstaticpages.pl -config=[fqdnsite001] -update
Where [fqdnsite001] denotes the fully qualified domain name of site001 (the old site). The script for site002 is similar, with the FQDN of the new site in place of [fqdnsite001].
I also checked the /var/log/awstats directory for any obvious red flags, particularly in the area of permissions. Nothing was found.