I'm reading the GeoIP tutorial at http://www.howtoforge.com/installing...n-ubuntu-12.04
First off using the lite version of GeoIP this works. After purchasing a lisence for GeoIP, I downloaded the new and updated database (.dat), and edited geoip.conf in apache2/mods-available.
The result when running a test script is nothing. I only see a blank page.
I'm using the following code from maxmind.com:
// include functions
// read GeoIP database
$handle = geoip_open("GeoIP.dat", GEOIP_STANDARD);
// map IP to country
echo "IP address 184.108.40.206 located in " . geoip_country_name_by_addr($handle, "220.127.116.11") . " (country code " . geoip_country_code_by_addr($handle, "18.104.22.168") . ")";
// close database handler
// print compulsory license notice
echo "<p> -- This product includes GeoIP data created by MaxMind, available from http://maxmind.com/ --";
Any ideas? Thanks.