nav-left cat-right
cat-right

GeoIP

3.1 GeoIP

I have some web applications that use GeoIP. If you don't know what it is, or don't care about it, skip this step. It's not important unless you have applications that will need it.

I was going to install GeoIP from yum, as there is a GeoIP package available. However, I could not find one for mod_geoip2, which is what you need to integrate it with Apache. It's an easy install, and I like the database to be up to date, so rather than fool with RPMs, I just downloaded the source and compiled it. The latest version of the C API can be found at http://www.maxmind.com/download/geoip/api/c/.

  • sudo su -
  • cd /usr/src/
  • mkdir geoip
  • cd geoip
  • wget http://www.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
  • tar zxvf GeoIP.tar.gz
  • cd GeoIP-1.4.4
  • ./configure
  • make
  • make install

We'll also need mod_geoip2, but we need apache first so that we have the apxs tool. So read on to Apache, then we'll revisit mod_geoip2.

  • Digg
  • del.icio.us
  • DotNetKicks
  • Slashdot
  • StumbleUpon