• 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”

  1. Mark Goddard Says:

    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

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>