How to configure GeoIP plugin for AWStats?

Created:

2017-03-22 14:00:44 UTC

Modified:

2017-08-16 17:23:00 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to configure GeoIP plugin for AWStats?

Applicable to:

  • Plesk for Linux

Question

How to configure AWStats to show which countries visitors are from?

Answer

By default, AWStats does not show the countries visitors are visiting from.

To enable this feature, the GeoIP plugin should be configured and the necessary modules installed.

1. Install the GeoIP module plugins:

# perl -MCPAN -e "install Geo::IP::PurePerl" 
# perl -MCPAN -e "install Geo::IP"

2. Uncomment the following line in /etc/awstats/awstats.conf , /etc/awstats/awstats.model.conf and all domain-level configuration files, for example /opt/psa/etc/awstats/awstats.example.com-https.conf :

LoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"

3. Recalculate web statistics for the domain:

# plesk sbin statistics --generate-domain-webstat -d example.com

# /usr/local/psa/admin/bin/statistics --calculate-one --domain-name example.com

Have more questions? Submit a request
Please sign in to leave a comment.