You just need to fire following command on cpanel server to install geoIP.
pecl install GeoIP
While installation you may get the following error.
checking for re2c version… invalid
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk… gawk
checking for geoip support… yes, shared
checking for geoip files in default path… not found
configure: error: Please reinstall the geoip distribution
IF you got the above error then you need to install
Geoip C API from this link http://www.maxmind.com/app/c
and then you need to install mod_geoip from this URL
http://geolite.maxmind.com/download/…pi/mod_geoip2/
Once you install this then proceed with this command pecl install GeoIP