importing awstats data

Discussion in 'Tips/Tricks/Mods' started by Justin Albstmeijer, Aug 8, 2012.

  1. Hi,

    I moved a website to an ispconfig3 based setup.
    Now I hoped to just copy over the old awstats data files and re-genarate the static pages to be included by /stats/index.php

    But is keeps only showing the current month in the "Jump to previous stats:" selection.

    This is what I did to regenerate the January stats of this year: -year=2012 -month=01 -config=website.ext -awstatsprog=/var/www/awstats/ -builddate=2012-01 -dir=/var/www/website.ext/web/stats/

    It created the static files of January with an index at


    But /stats/index.php still only shows me the option to select 2012-08 (this month).

    What am I missing? Do I need to rename the output files?

    Thank you in advance.
  2. Eventually I found the stats of the previous months should each reside in a separate folder.

    For example, the index of July should be:


    so to import the previous months, based on existing awstats data, I did:


    for month in 1 2 3 4 5 6 7; do
    mkdir -p /var/www/$site/web/stats/$year-$month -year=$year -month=$month -config=$site -awstatsprog=/var/www/awstats/ -dir=/var/www/$site/web/stats/$year-$month
    cp /var/www/$site/web/stats/$year-$month/awstats.$site.html /var/www/$site/web/stats/$year-$month/awsindex.html

Share This Page