Install MaxMind GEOIP vs. geoipfree on AWStats Windows

How to install GEOP Standard on Windows WAMP (WampServer)

This tutorial is split into five chronological sections:

Pages

Installing AWStats on WAMP

Auto Update AWStats on WAMP

Create Additional AWStats WAMP Profiles

Install GEO IP on AWStats WAMP

Auto Update GEO IP AWStats WAMP

AWStats includes options to enable plugins like GEO IP, via your awstats.mysite.com.conf. GEO IP is essential, it provides you with more precise information, than if you were to use AWStats with out the plugin enabled. I’ll also, explain the free difference on MaxMind GEOIP Standard vs. geoipfree.

It’s either one or the other; install geoipfree ‘or’ geoip GEOIP_STANDARD.

First off, GEOIP_STANDARD is also free, it includes more features than geoipfree.

If you select geoipfree then simply enable it, by uncommenting it in the plugins section of your awstats.webdev.conf.

Certain data in GEOIP_STANDARD, however are not free, but city, country, and org are free. And this is what we want. Also, instead of using DNS Lookups, we will install, configure, and enable GEOIP_STANDARD in AWStats.

You can see how GEOIP speeds up the DNS lookup by viewing the following stats, here.

How to install GEO IP on AWSTats WAMP (WampServer)?

IMPORTANT
I am using my site, webdevster.com as an example. You must substitute webdevster.com (webdev) related entries with your Windows environment

First check the version of perl by typing the following in a cmd:

prompt>perl -v

 

Step 1:

For ActiveState perl version 5.xx.xx

prompt>ppm install http://trouchelle.com/ppm10/Geo-IP-PurePerl.ppd

Verify it installed by finding Geo-IP-PurePerl in:

prompt>ppm list

 

Step 2:

Create a directory geodata, like so:

c:\wamp\bin\geodata

Step 3:

Download

http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
http://geolite.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz

and extract all the files, like so:

c:\wamp\bin\geodata\GeoIP.dat
c:\wamp\bin\geodata\GeoIPASNum.dat
c:\wamp\bin\geodata\GeoIPCity.dat

Step 4:

Enable GEO IP, by updating your awstats.webdev.conf:

  • Find:
    #LoadPlugin="geoip GEOIP_STANDARD /pathto/GeoIP.dat"

    Replace with:

    LoadPlugin="geoip GEOIP_STANDARD c:\wamp\bin\geodata\GeoIP.dat"
  • Find:
    #LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /pathto/GeoIPCity.dat"

    Replace with:

    LoadPlugin="geoip_city_maxmind GEOIP_STANDARD c:\wamp\bin\geodata\GeoLiteCity.dat"
  • Find:
    #LoadPlugin="geoip_org_maxmind GEOIP_STANDARD /pathto/GeoIPOrg.dat"

    Replace with:

    LoadPlugin="geoip_org_maxmind GEOIP_STANDARD c:\wamp\bin\geodata\GeoIPASNum.dat"

Step 5:

Process the apache log by typing the following cmd.

prompt>perl c:\wamp\bin\AWStats\wwwroot\cgi-bin\awstats.pl -update -config=webdev

Please note, this process will take longer than with GEOIP enabled. If you like to speed up the process, just enable GeoIPCity and GeoIP and disable GeoIPASNum. An addition you can uncomment LoadPlugin=”hashfiles” to speed up the process.

Step 6:

Point browser to

http://yourwebsite.com/awstats_show/awstats.pl?config=webdev

to view new stats. They will be located under Who: Organizations, Countires, Full List, and Cities.

Continue to next page….SECTION 5. Auto Update GEO IP AWStats WAMP (Script to Auto Update GEO IP on Windows WAMP)

Pages: 1 2 3 4 5

This entry was posted on Sunday, February 14th, 2010 at 11:09 am and is filed under How To, Web Dev. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.