Friday, December 4, 2009

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

There are lots of tutorials how to install the Geo::IP::PurePerl plug-in for AWStats, but they specify ppm packages only for ActivePerl versions 5.6 and 5.8. I had to dig google a bit to find the repositories for ActivePerl 5.10. I found the Geo-IP-PurePerl packages here.

To install the x86 Perl Package:
C:\>ppm install http://ppm4.activestate.com/MSWin32-x86/5.10/1000/B/BO/BORISZ/Geo-IP-PurePerl-1.24.ppmx
Add the following line to awstats.yourwebsite.conf file:
LoadPlugin="geoip GEOIP_STANDARD C:\Program Files\GeoIP\GeoIP.dat"
After this, create a directory C:\Program Files\GeoIP and extract here the latest country database file, GeoIP.dat, from here. You have to grant the 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.

1 comment:

  1. Solitaire is the game that deal with the card and need player to play the game and you may play withe CPU and made a competitive environment and need to tap the game free solitaire online in the playground and need to win the solitaire game

    ReplyDelete