Download & Extend

Clarification on instructions for "installing GeoIP on Ubuntu 9.1 Linux

Project:Ad GeoIP
Version:6.x-2.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I followed the Install.txt
1. sudo aptitude install libgeoip-dev libgeoip1
2. sudo pecl install geoip
3. "extension=geoip.so" to your php.ini

Now it says:
Download and install one or more of the MaxMind GeoIP binary databases. You
can install one of the free databases, or one of the commercial databases.
(URLs can be found above in the requirements sections.) Installation
instructions can be found here:
http://www.maxmind.com/app/installation

so I did the following:

1. wget -N -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP....
2. $ tar xvfz GeoIP-106_20051201.tar.gz
3. Then you will need to install the .dat file into a data directory. For example, on Linux/Unix, you could run:
$ mv GeoIP-106_20051201/GeoIP-106_20051201.dat /usr/local/share/GeoIP/GeoIP.dat

Then it says:
"To uncompress the CSV format, you can use any zip program, like WinZip for Windows, or unzip on Linux. Then you can load the CSV database into a SQL database. Learn more "

Do I need to create the geo_block table in my database and then upload the CSV files?

I thought the *dat files were good enough.

Any help in clarifying this would be greatly appreciated.

Comments

#1

One year ago to the day you posted this. I have the same question. I installed the .dat files where they are supposed to be. I didn't upload any csv files to the database because those instructions are not in the INSTALL.php file.