paralell processing of awstats statistics updates


awstats_update_all is a shell script to start AWStats statistics update processes synchronously.

AWStats is a webserver access statistic analyzer by Laurent Destailleur. You can use awstats_update_all to start the statistics regeneration process of AWStats. If there are many domains or sites to generate the statistics for, the update process can take longer to complete. Unlike other scripts, awstats_update_all runs several AWStats update processes in parallel which speeds up updating of all sites on decent hardware considerably.

System Requirements

awstats_update_all is tested on Debian GNU/Linux. It may run on other systems as well.


Download the script and save it to /usr/local/sbin/awstats_update_all, make it executable, adjust the parameters in the beginning and let it run by cron and/or logrotate.
For cron insert these lines into /etc/cron.d/awstats to update every 30 Minutes:
20,50 *  * * *       root    [ -x /usr/lib/cgi-bin/ -a -x /usr/local/sbin/awstats_update_all ] && /usr/local/sbin/awstats_update_all -q

For logrotate insert these lines into /etc/logrotate.d/apache2:
                /usr/local/sbin/awstats_update_all -q
See the respective manual of cron or logrotate.


For a silent operation use "-q" as an argument for awstats_update_all.


(c) 2010-2011 under GNU General Public License, Version 2, by Adrian Zaugg.


download awstats_update_all uses awstats_update_all three times an hour for ~45 domains.