Once you have installed AWStats on Linux system and when view AWStats report for a domain name unfortunately the Countries wise does not get report properly.
You need to configure GeoIP.dat
Download the latest GeoIP.dat file from the URL :
# wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
# gunzip GeoIP.dat.gz
# gunzip GeoIP.dat.gz
Move or copy the GeoIP.dat to awstats plugin directory
# mv GeoIP.dat /usr/local/awstats/wwwroot/cgi-bin/plugins/.
We need to specify the GeoIP database location in domain AWStats configure file :
awstats.domainname.com.conf
LoadPlugin="geoip GEOIP_STANDARD /usr/local/awstats/wwwroot/cgi-bin/plugins/GeoIP.dat"
Install perl-Geo-IP Package :
# yum install perl-Geo-IP
Once you have completed all the steps run awstats.pl script to update awstats and refresh the browser
# /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=domainname.com
Comments (0)