View Single Post
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 11-23-2012 , 13:52   Re: Frequently Asked Questions (FAQ)
#5

Q: What is this GeoLiteCity.dat file and how do I get it?

A: GeoLiteCity.dat is a file that is used for Geo-ip lookups (country flags in stats). It is one of the options in the HlstatsX:CE settings tab of the website interface (after being logged in as admin).

Currently HLX:CE supports looking up IP location through the GeoLiteCity.dat file or through the MySQL database. We highly recommend that you use the GeoLiteCity.dat file instead of the database as these lookups can be quite intensive.


If you are on a Linux system, we have provided the necessary script to obtain the GeoLiteCity.dat file. We do not have a Windows script at this time.

On a Linux system follow these steps:
  1. SSH to the server you installed the "scripts" folder on and change directory into "scripts/GeoLiteCity".
  2. At the shell type "./install_binary.sh"
  3. This will download the binary and decompress it properly.
  4. Verify that your setting in HLX:CE admin console is set to use the GeoLiteCity.dat file and not the database

You can schedule, using CRON, that script to run on a monthly or weekly basis if you wish. The script will download a new copy every time from the GeoLiteCity web site and automatically update your .dat file.

On a Windows machine you must manually obtain the file and extract it as GeoLiteCity.dat.

To do this:
  1. Change your directory to that where you hlstats.pl file is stored in. There should be a directory there called "GeoLiteCity". Change to this directory.
  2. Download the following file:
  3. http://geolite.maxmind.com/download/...iteCity.dat.gz
  4. Using 7zip (or another program that can handle .gz files) extract the file GeoLiteCity.dat into the GeoLiteCity directory.
__________________
Mavrick4283 is offline