AWstats GeoIP malfunctions for domains migrated from earlier versions

Created:

2016-11-16 13:14:01 UTC

Modified:

2017-08-08 13:44:35 UTC

1

Was this article helpful?


Have more questions?

Submit a request

AWstats GeoIP malfunctions for domains migrated from earlier versions

Applicable to:

  • Plesk for Windows

Symptoms

  • AWStats is now showing countries information

  • GeoIP is not working in AWStats for the domains which were migrated from older Plesk versions.

Cause

AWStats GeoIP plugin was not installed or configured properly.

Resolution

  1. Install Geo::IPfree and Geo::IP::PurePerl Perl modules.
    Get the latest version from Perl website:

    Geo::IPfree

    Geo::IP::PurePerl

    Or just install it from Windows command line:

    ppm install http://trouchelle.com/ppm10/Geo-IP-PurePerl.ppd
    ppm install http://trouchelle.com/ppm10/Geo-IPfree.ppd
  2. Download, unzip and install GeoIP.dat file from MaxMind web site into the geodb directory, for example in C:\\GeoIP . Please note that to this file should be updated every month to get accurate statistics.

  3. Adjust file permission to allow IIS anonymous IUSR_<username> user read it. You may grant Read permission to Everyone

  4. Edit %plesk_dir%\\Additional\\AWStats\\wwwroot\\cgi-bin\\awstats.model.conf and enable geoip plugin:

    LoadPlugin="geoip GEOIP_STANDARD C:\\GeoIP\\GeoIP.dat"
  5. Recalculate web statistics.

    5.1. To recalculate web statistics for a domain use the following commands:

    "%plesk_bin%\\statistics.exe" --calculate-one --domain-name example.com
    "%plesk_bin%\\statistics.exe" --generate-domain-webstat --domain-name example.com

    5.2 To calculate the statistics for all domains, execute the following commands in the same order:

    "%plesk_bin%\\statistics.exe" --calculate-all
    "%plesk_bin%\\statistics.exe" --generate-all-webstat
Have more questions? Submit a request
Please sign in to leave a comment.