mod_geoip howto

wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.6.tar.gz
tar -zxf GeoIP-1.4.6.tar.gz
cd GeoIP-1.4.6
./configure
make
make install
cd ..
tar -zxf mod_geoip2_1.2.4.tar.gz
cd mod_geoip2-1.2.4/
apxs -i -a -L/usr/local/lib -I/usr/local/include -lGeoIP -c mod_geoip.c
vi /etc/httpd/conf/httpd.conf

GeoIPEnable On
GeoIPDBFile /usr/local/share/GeoIP.dat

scp imtiaz@netbrix.net:/home/imtiaz/src/GeoIP.dat /usr/local/share/

/etc/init.d/httpd stop
/etc/init.d/httpd start

Leave a Reply

Your email address will not be published. Required fields are marked *