Archive for the tag 'show'

Configuring AwStats to show the country of site visitors.

By default AwStats does not show the source country for visitors viewing a domain. To enable this feature, the GeoIP plugin should be configured. Here is the information about this plugin from /etc/awstats/awstats.conf:

# Plugin: GeoIP
# Perl modules required: Geo::IP or Geo::IP::PurePerl (from Maxmind)
# Country chart is built from an Internet IP-Country database.
# This plugin is useless for intranet only log files.
# Note: You must choose between using this plugin (need Perl Geo::IP module
# from Maxmind, database more up to date) or the GeoIPfree plugin (need
# Perl Geo::IPfree module, database less up to date).
# This plugin reduces AWStats speed of 8% !

Usually, geoip.pm plugin comes with AwStats package, but the Perl modules necessary for the plugin to work (Geo::IP or Geo::IP::PurePerl) should be installed. You can get all the necessary installation instructions and downloadable plugin files (for example, “Geo::IP::PurePerl Module” library) from here:

http://awstats.sourceforge.net/docs/awstats_contrib.html#geoip

http://www.maxmind.com/app/perl?rId=awstats

The plugin needs to be enabled in the main AwStats configuration files:

/etc/awstats/awstats.conf
/etc/awstats/awstats.model.conf

And the files that were already configured by Plesk for every domain which can be found in /usr/local/psa/etc/awstats/*. The line that should be added into all these files looks like:

LoadPlugin=”geoip GEOIP_STANDARD /pathto/GeoIP.dat”

Latest GeoIP.dat can be found at http://www.maxmind.com/