Our Blog

News, thoughts & useful links

Contact: Skype , email or call
+44 (0) 131 556 6818

How to install GeoIP on CentOS

January 15th, 2009 by Anton

Follow these instructions to install GeoIP on CentOS:

  1. Install geoip via yum:
    
    yum install geoip geoip-devel
    
  2. You also might want to download database with ip addresses from Maxmind website and place it in /usr/share/GeoIP (which is a default location of geoip upon installation).
  3. Install PECL extension:
    
    pecl install geoip
    
  4. Add extension=geoip.so to your /etc/php.ini
  5. Restart apache:
    
    /etc/init.d/httpd restart
    


Comments are closed.