Installing the Geo::IP plug-in for AWStats when ActivePerl distribution is 5.10.x

There are multiple tutorials on how to install the Geo::IP::PurePerl plug-in for AWStats, but they specify ppm packages for ActivePerl versions 5.6 and 5.8.

I had to dig google a bit to find the correct repositories for ActivePerl 5.10. I found the Geo-IP-PurePerl packages here.

Add the following line to awstats.yourwebsite.conf file:

LoadPlugin="geoip GEOIP_STANDARD C:\Program Files\GeoIP\GeoIP.dat"

After this, create the directory C:\Program Files\GeoIP and extract here the latest country database file, GeoIP.dat, obtained from here. You’ll have to grant the IIS IUSR_ account read access to this file, otherwise you’ll get the error message:

Error: Plugin init for plugin 'geoip' failed with return code: Error opening c:\Program Files\GeoIP\GeoIP.dat at C:/Perl/site/lib/Geo/IP/PurePerl.pm line 183. (A module required by plugin might be missing).
Setup ('C:\Inetpub\wwwroot\AWStats\cgi-bin/awstats.yourwebsite.conf' file, web server or permissions) may be wrong.

Originally posted to: http://www.thesysadminhimself.com/2009/12/installing-geoip-plug-in-for-awstats.html

Updated:

Comments