How to enable GeoIP Apache API (mod_geoip)
cd /usr/src
wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.6.tar.gz
tar -xvzf GeoIP*
cd GeoIP*
./configure
make
make install
cd /usr/src
wget http://geolite.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2_1.2.5.tar.gz
tar -xvzf mod_geoip*
cd mod_geoip*
/usr/local/apache/bin/apxs -i -a -L/usr/src/GeoIP-1.4.6/libGeoIP -I/usr/src/GeoIP-1.4.6/lib/GeoIP -lGeoIP -c mod_geoip.c
Please note, you need to enable mod_geoip inside your httpd.conf with the following lines:
GeoIPEnable On
GeoIPDBFile /usr/local/share/GeoIP/GeoIP.dat









