Published on BoardParks (http://boardparks.com)

Home > Distributor Loc8r Notes

By admin
Created 01/02/2009 - 11:35

Distributor Loc8r Notes

 

Step One: Install GeoIP Apache Module mod_geoip [1]

This setup was performed on Ubuntu 8.10, PHP 5.26, Apache2, MySQL 5.

Install mod_geoip:

  1. /# apt-get install libapache2-mod-geoip

Or download mod_geoip source files [1].

Open /etc/apache2/mods-available/geoip.conf and uncomment the GeoIPDBFile

  1. /# vim /etc/apache2/mods-available/geoip.conf

geoip.conf now looks like this:

  1. <IfModule mod_geoip.c>
  2. GeoIPEnable On
  3. GeoIPDBFile /usr/share/GeoIP/GeoIP.dat
  4. </IfModule>

Install the GeoIP Apache API

http://www.maxmind.com/app/mod_geoip [1] [Download Source Files] [2]

GeoIP C API - not necessary?

http://www.maxmind.com/app/c [3]

Install the GeoIP PHP API

http://www.maxmind.com/app/php [4] [Download Source Files] [5] - not sure this is entirely necessary.

GeoLite Country DB

http://www.maxmind.com/app/geolitecountry [6]

GeoLite City DB

http://www.maxmind.com/app/geolitecity [7].

No votes yet
SliceHost Ubuntu 8.10 Server

Powered by Drupal, an open source content management system

Source URL: http://boardparks.com/content/distributor-loc8r-notes

Links:
[1] http://www.maxmind.com/app/mod_geoip
[2] http://geolite.maxmind.com/download/geoip/api/mod_geoip2/
[3] http://www.maxmind.com/app/c
[4] http://www.maxmind.com/app/php
[5] http://geolite.maxmind.com/download/geoip/api/php/
[6] http://www.maxmind.com/app/geolitecountry
[7] http://www.maxmind.com/app/geolitecity