Here is how to make AWSTATS produce proper Country and City statistics:
1) download the following two files:
http://geolite.maxmind.com/download/...y/GeoIP.dat.gz
http://geolite.maxmind.com/download/...iteCity.dat.gz
2) gunzip them under /usr/local/lib/ (easily accessible from cPanel and awstats)
3) Make sure you have the perl module "Geo::IP::PurePerl" installed. Go to WHM->Install a Perl Script and install it if you don't.
4) Edit /usr/local/cpanel/etc/awstats.conf and at the bottom REMOVE the geoipfree plugin and add the following:
Code:
#LoadPlugin="geoipfree" (disabled, so we can use geoip with database)
LoadPlugin="geoip GEOIP_STANDARD /usr/local/lib/GeoIP.dat"
# You need the "geoip_city_maxmind" which is not included by default in cPanel
#LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /usr/local/lib/GeoLiteCity.dat"
Finally, proper statistics!!!