I just installed mod_geoip on a dedicated server, I did something like this:
cd /usr/share/GeoIP/ wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz gzip -d GeoIP.dat.gz wget http://twiki.cpanel.net/twiki/pub/EasyApache3/CustomMods/custom_opt_mod-mod_geoip.tar.gz tar -C /var/cpanel/easy/apache/custom_opt_mods -xzf custom_opt_mod-mod_geoip.tar.gz
Then i rebuilded apache using whm easyapache and checking the mod_geoip checkbox. After that was done I added this to the httpd.conf file:
LoadModule geoip_module /usr/local/apache/modules/mod_geoip.so GeoIPEnable On GeoIPDBFile /usr/share/GeoIP/GeoIP.dat
I made a simple php file with
<? print_r( $_SERVER ); ?>, and the only geoip related thing I see is
[GEOIP_ADDR] => 111.222.333.444, but I don't see the
[GEOIP_COUNTRY_CODE] variable that I need to use.
I have made this same process in other servers and it worked well, what am I missing?