Note: For the purposes of this tutorial, my working directory will be “/root”. Open up your Putty SSH Client (see: “ Affiliate’s Guide to SSH – Part 1“) and login to your server. Installing the Databaseįirst up, let’s download the latest GeoLite2-City database. But some commands like “yum” will need to be changed. You’ll also probably be able to follow this guide on Ubuntu as well. They should work for other Centos versions. Note: These install instructions are for Centos 6.5 Final. (4) A feeling of warm satisfaction and accomplishment (3) The optional PHP C Extension installed (1) The latest GeoLite2-City db installed What’s in the boxĪt the end of this walk-through, you’ll have: To help you avoid the same issues, I decided to create this walk-through and note any problems you might have.
Most of them were small, but some required a lot of searching and trying different things to figure out what was wrong. While going through this set up process myself, I ran into a handful of problems.
#Maxmind geolite how to#
Unfortunately, the documentation on how to get this set up from start to finish is still non-existent. But the new format also requires a different method of setup. This new format is supposed to be better/faster, etc. Since then, Maxmind has updated their database format to “GeoIP2”. A couple of years ago I posted “ Blazing Geo Lookups! How To Install Maxmind PHP Extension on Your Server” which detailed how to get the Maxmind’s GeoIP database setup on your server.