System: Ubuntu 10.04 LTS
Guys, when I restored a backup from a ubuntu 8.04 LTS to a ubuntu 10.04 LTS, the awstats for those virtual servers are not working.
** New virtual servers do not have this problem.
I have had to manually run the awstats.pl for the restored domains.
What do I have to do to make these awstats work every 10 mn like it should? I've looked everywhere for why the new virtual servers are collecting stats, and why the old servers aren't, and I can't figure it out. Please help!
Thanks
Best Regards
MD
PS: here's the script I created to process all stats manually - the script works very well, but I really want virtualmin to handle this again ---
#!/bin/bash
source ./.bashrc
OPT_SITE=$1
if [ "$OPT_SITE" == "-" ]; then
OPT_SITE=""
fi
# make sure we're running as root
if [ "$UID" != "0" ]; then
echo "Sorry, must be root. Exiting..."
return 1
fi
for f in `ls -1 /etc/awstats`; do
if [ ! -L "/etc/awstats/$f" -a "$f" != "awstats.conf" -a "$f" != "awstats.conf.local" ];
then
part1=`echo $f | cut -d. -f2`
part2=`echo $f | cut -d. -f3`
site=$part1.$part2
echo "**************************************************************"
echo "updating AWstats for website $site"
/usr/lib/cgi-bin/awstats.pl -config=$site -update
fi;
done
Comments
-