- February
- 22nd
- 2009
CentOs — how to install mod geo_ip from maxmind
Posted by MaEl in: Bits-and-Bytes Comments (1)
yum install GeoIP
wget http://yum.jardiknas.org/centos/extras/5/i386/mod_geoip-1.1.8-2.el5.i386.rpm
rpm -i mod_geoip-1.1.8-2.el5.i386.rpm
wget -N -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
gzip -d GeoLiteCity.dat.gz
mkdir /usr/share/GeoIP/
mv GeoLiteCity.dat /usr/share/GeoIP/
nano /etc/httpd/conf.d/mod_geoip.conf
#change GeoIP.dat to GeoLiteCity.dat