Awstats

From Useful Data
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

AWStats log file analyser for web site hit statistics

If possible, I need to change the page name from Awstats to AWStats. However, it seems to be a feature of wiki software that changing the case of page names beyond the standard title case is either impossible or very hard.

AWStats: "AWStats is powerful log analyzer which creates advanced web, ftp, mail and streaming server statistics reports based on the rich data contained in server logs. Data is graphically presented in easy to read web pages. Designed with flexibility in mind, AWStats can be run through a web browser CGI (common gateway interface) or directly from the operating system command line."

Where I have AWStats installed

I have AWStats installed on:

NoNewWars.co.uk,
NoNewWars.org.uk and
11112018.org.uk

Accessing it - the URL

Sometimes it can be accessed by appending /awstats to the command line. Sometimes that does not work. Why?

Sometimes it is necessary to put /awstats/index.cgi on the command line.

Weird.

index.cgi or awstats.pl ?

I am unsure whether one is supposed to access it through index.cgi, e.g. nonewwars.org.uk/awstats/index.cgi or awstats.pl, e.g. nonewwars.org.uk/awstats/awstats.pl. Using index.cgi makes this screen appear first:

Generating stats for the first time. Please wait, this can take a while.

...

Complete. You will be redirected to the stats page in a moment.

I can only assume the index.cgi script does an updating of the statistics by re-reading the log files.

Daily updating

I believe that to ensure the statistics are updated, one should have a crontab entry like this running each day:

/home/sites/nonewwars.co.uk/public_html/awstats/awstats.pl -config=mysite -update

Why it is awstats.pl rather than index.cgi I do not know.

Manual updating

Go to the current statistics page and click on the 'Update now' link on the top of the page.

Or execute the URL: http://www.conscienceonline.org.uk/awstats/awstats.pl?update=1

Or execute the URL: http://www.conscienceonline.org.uk/awstats/index.cgi which seems to go to the same place but with the added Generating stats for the first time message.