Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

AWStats must be ran frequently to update statistics. How can I do this ?

AWStats ran statistics
0
Posted

AWStats must be ran frequently to update statistics. How can I do this ?

0

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.

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123