- 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
« How to protect linux from ddos attack | Hello world! »
One Response to “CentOs — how to install mod geo_ip from maxmind”
Leave a Reply
August 24th, 2009 at 5:57 pm
Great work. Needed this for a while. I know it’s a few months old but worked spot on with CentOS 5.3
I did have to install nano though. yum install nano
Easy.
Many thanks