AWStats must be ran frequently to update statistics. How can I do this ?
SOLUTION: With Windows, you can use the internal task scheduler. The use of this tool is not an AWStats related problem, so please take a look at your Windows manual. Warning, if you use “awstats.pl -config=mysite -update” in your scheduled task, you might experience problem of failing task. Try this instead “C:\WINNT\system32\CMD.EXE /C C:\[awstats_path]\awstats.pl -config=mysite -update” or “C:\[perl_path]\perl.exe C:\[awstats_path]\awstats.pl -config=mysite -update” A lot of other scheduler (sharewares/freewares) are very good. With unix-like operating systems, you can use the “crontab”. This is examples of lines you can add in the cron file (see your unix reference manual for cron) : To run update every day at 04:00, use : 0 4 * * * /opt/awstats/wwwroot/cgi-bin/awstats.pl -config=mysite -update To run update every hour, use : 0 * * * * /opt/awstats/wwwroot/cgi-bin/awstats.
SOLUTION: A good way of working is to run the AWStats update process as a preprocessor of your log rotate process. See previous FAQ (FAQ-COM120) for this. But you can also run AWStats update process regularly by a scheduler: With Windows, you can use the internal task scheduler. The use of this tool is not an AWStats related problem, so please take a look at your Windows manual. Warning, if you use “awstats.pl -config=mysite -update” in your scheduled task, you might experience problem of failing task.