The 7 Things I Know About Cyber Security After 25 Years | April 2024
How to Install the Geolocation Database for the LiveHelp Server
1. How to install the Geolocation
database in your server side
This guide will help you to install the geolocation
free database in your own server side.
2. 1. Download the Geolocation Database
The last free IP2Location database is available
through the follow link : http://lite.ip2location.com
, remeber you need to use the DB5.
NOTE : The database is available in two formats, CSV and Bin.
In order to make the process easily we converted
the CSV file and the table DML in a single standard
SQL script that can be load easily through the mysql
console. Our script have 1.685.307 records.
NOTE : Our single script is available through our technical forum at the follow link :
http://www.activehelper.com/forum/joomla/general-discussion
3. 2. Install the Ip2Location Database
In order to do the installation you need to have
access to your server via SSH. The process is quite
simple, please follow the next steps :
1. Upload the script ip2location.sql in your server side via FTP.
2. Via SSH go to the same path where you have the file and start the
MySQL Console through the follow command line:
$ mysql --user=username --pass=password database_name
3. Select the database where you want to run the script.
mysql> use ipdb;
4. Finally run the import script through the follow command line:
mysql> source ip2location.sql;
NOTE : The script will be run for a few moments in order to upload the all records.
NOTE : You can create and upload the data in the same database where you have the CMS.
4. 3. Install the Gelocation Script
In order to access the Geolocation database you
need to install a simple php script in your server
side. The process is quite simple, please follow the
next steps :
1. In your server side create a folder named : iplocation
2. Upload the script ip_query.php in the new folder.
3. Edit the php script and enter the database connection info.
NOTE : Remember you always need to use the information that point to the database where is the
Geolocation database installed.
5. 4. Setup the Script on the LiveHelp Server
The last process is enter the link to the script in the
LiveHelp Server tracking script. Please follow the
next steps :
1. Via FTP go to the path where is the LiveHelp Server Tracking script:
Joomla : componentscom_activehelper_livehelpserverimport
WordPress : wp-contentpluginsactivehelper-livehelpserverimport
Drupal : sitesallmodulesactivehelper_livehelpserverimport
2. Edit the file named : javascript.php
3. Search for the line : http://s99.velaio.com/iplocation/ and update for
your server link. Example : http://www.myserver.com/iplocation/
6. 5. Test the new Database
The database need to be tested with a fresh visitor.
NOTE : If you don’t get any geolocation info this is because you don't follow the steps like the guide says.
NOTE : Please remember that the database is provided by a third-party and we don’t offer support related
with this or with the accuracy of the data.