User Tools

Site Tools


geo_ip

This is an old revision of the document!


Geo IP Help Page

mod_geoip Installation

Get c library from maxmind.com

compile it and install it.

downlaod c library from

download geoip database

Get mod_GeoIP from maxmid.com

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
</IfModule>

restart apache.

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