After purchasing the MaxMind GeoIP City database from MaxMind, follow these steps to download the correct database package:
Upload the GeoIP-133_YYYYMMDD.tar.gz file that you've downloaded to your web server. It doesn't matter where you upload it, just so long as you can get access to it easily from the command shell of your choice. Once you've uploaded the file, you will need to execute the following commands to install it:
gunzip GeoIP-133_YYYYMMDD.tar.gz
tar -xf GeoIP-133_YYYYMMDD.tar
mkdir /path/to/webapps/advertpro/modules
cp GeoIP-133_YYYYMMDD/GeoIPCity-133.dat /path/to/webapps/advertpro/modules/GeoIPCity.dat
If you have already installed AdvertPRO, you will need to edit the ~/webapps/advertpro/config/maxmind.properties file to enter the path to the GeoIPCity.dat file that you've just installed.
The maxmind.properties file should contain the following when you're done:
#WARNING: DO NOT EDIT THIS FILE DIRECTLY!!!
#Tue Mar 02 21:41:22 EST 2004
FILENAME=/path/to/webapps/advertpro/modules/GeoIPCity.dat
After this configuration is completed, contact technical support at Renegade Internet and ask them to enable GeoIP City for your license key. Do not do this until you have uploaded the GeoIP database and edited the maxmind.properties configuration file! Doing so will result in the GeoIP module failing to load and abort startup.
In order for AdvertPRO to load your newly installed MaxMind City module, you will need to restart your application server.
/etc/rc.d/init.d/tomcat restart
That's it. Congratulations, you've successfully installed the MaxMind City module!
If you have problems with AdvertPRO starting back up after the installation, you may find some helpful information in the ~/webapps/advertpro/logs/error_log_YYYY-MM-DD file to assist you with troubleshooting.