User Tools

Site Tools


Geo IP Help Page

mod_geoip Installation

Get c library from

compile it and install it.

downlaod c library from

download geoip database

save geoip database at - /srv/www/htdocs/.geoip/GeoIP.dat

Get mod_GeoIP from

install it using following command

/srv/www/bin/apxs -i -a -L /usr/local/lib -I /usr/local/include -lGeoIP -c mod_geoip.c

add following line to your config

| httpd.conf
<IfModule mod_geoip.c>
GeoIPEnable On
GeoIPDBFile /srv/www/htdocs/.geoip/GeoIP.dat

restart apache.

geo_ip.txt · Last modified: 2020/08/10 02:35 (external edit)