Article ID: 3080, created on Nov 19, 2007, last review on May 11, 2014

  • Applies to:
  • Plesk for Linux/Unix


By default, AwStats does not show the countries visitors are visiting from. 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, the plugin comes with the AwStats package. However, the Perl modules necessary for the plugin to work (Geo::IP or Geo::IP::PurePerl) should be installed.

You can get all necessary installation instructions and downloadable plugin files (for example, "Geo::IP::PurePerl Module" library) here:

The plugin should be enabled in the main AwStats configuration files:


It should also be enabled in the files that were already configured by Plesk for every domain that can be found in /usr/local/psa/etc/awstats/*.

The line that should be added into all of these files looks like this:

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

The latest GeoIP.dat can be found at

Note that it might take a couple of days for your stats to start accumulating the information on visitors' countries.

29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF