server stats are important
The quality of your website also happens to depend on the number of mistakes they have. A professional website is supposed to have less dead links for example. Search engines use information like this to rank your site. It is also good to know which specific pages are the most frequently visited on your site:
- optimize your content to fit the expectations of your audience
- never ever delete a page which is frequently visited, also known as the Cool URIs don’t change-rule.
compared to other tools
- displays a list of
error 404: file not found, so it can be used to locate dead links (my personal killer feature in this comparison)
- is written in perl and is expandable via perl modules. Perl is a good choice since regular expressions are a language feature and can easily be used
- looks nicer and can be further tweaked by using plugins
- better maintained
Under FreeBSD files are typically located under
/usr/local/www/awstats/. Depending on the webserver you use this location does not really matter when aliases are used.
A minimalistic configuration might look like this…
- step 1: Take the model file as an example for an configuration and cusomize the following 5-6 lines:
/usr/local/www/awstats/cgi-bin/awstats.model.conf123456LogFile="/var/log/lighttpd/access.log"LogFormat=1SiteDomain="entwicklerseite.de"HostAliases="localhost 127.0.0.1 www.entwicklerseite.de blog.entwicklerseite.de"DirData="/usr/local/www/logs/entwicklerseite.de/DirData/"CreateDirDataIfNotExists=1
awstats.[entwicklerseite.de].confor it won’t work.
- step 2: create the directory for incrementall data (that way the stats can be updated more quickly):
/usr/local/www/awstats/cgi-bin/awstats.model.conf12mkdir /usr/local/www/logs/entwicklerseite.de/chown www:www /usr/local/www/logs/entwicklerseite.de/
- step 3 (optional): visit your stats and update them
[entwicklerseite.de]/awstats/awstats.pl?config=[entwicklseite.de]. That way you can use one installation to log all your subdomains for example by providing a config file for each of those.
- step 4 (optional): use cron to update your stats
/etc/periodic/daily/998.awstats-wireme.de12# update all stats.../usr/local/www/awstats/tools/awstats_updateall.pl -awstatsprog=/usr/local/www/awstats/cgi-bin/awstats.pl -configdir=/usr/local/www/awstats/cgi-bin/ now
- No stats: Every number is a
- This has propably to do with the LogFormat you specified. It is annoying, but is has to match exactly the number of fields per line
/usr/local/www/awstats/cgi-bin/awstats.pl -config=entwicklerseite.defrom the shell and see what it says.
Especially for 1&1 log files I was able to use:
/usr/local/www/awstats/cgi-bin/awstats.entwicklerseite.de.conf12LogFile="/usr/local/bin/perl /usr/local/www/awstats/tools/logresolvemerge.pl /usr/local/var/log/wireme.de/access.log.* |"LogFormat="%host %other %logname %time1 %methodurl %code %bytesd %virtualname %refererquot %uaquot %other"