Follow these instructions to install GeoIP on CentOS:
- Install geoip via yum:
yum install geoip geoip-devel - 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). - Install PECL extension:
pecl install geoip - Add
extension=geoip.soto your/etc/php.ini - Restart apache:
/etc/init.d/httpd restart