After purchasing a subscription for the MaxMind GeoIP City database from MaxMind, follow these steps to install GeoIP City and set it up for automatic updates:
After completing the installation you should have the GeoIP City database installed at /usr/local/share/GeoIP/GeoIPCity.dat and it will be updated automatically every week.
At this point, if you have not set AdvertPro up yet you can skip the rest of these instructions and instead proceed to run its setup utility.
If you have already run the AdvertPro setup, you will need to edit the /usr/local/tomcat/webapps/ROOT/config/maxmind.properties file and enter the path to the GeoIPCity.dat file.
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=/usr/local/share/GeoIP/GeoIPCity.dat
CACHE=0
After this configuration is completed, contact technical support at Renegade Internet and ask them to enable the GeoIP City module for your license key.
In order for AdvertPro to load and activate the GeoIP City module, you will need to restart Tomcat.
/etc/rc.d/init.d/tomcat restart
That's it. Congratulations, you've successfully installed the GeoIP City module!
If you have problems with AdvertPro starting back up after the installation, you may find some helpful information in the /usr/local/tomcat/webapps/ROOT/logs/error_log_YYYY-MM-DD file to assist you with troubleshooting.