Geocoding (finding latitude/longitude for street addresses), Geotagging (tagging media with latitude/longitude coordinates), and Geolocation (finding latitude/longitude of computer with IP X-Forwarded-For). There are some options to install on linux environment:

# wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
# gunzip GeoLiteCity.dat.gz
# sudo mkdir -v /usr/share/GeoIP
# sudo mv -v GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat

Install geoip with php5
# sudo apt-get install php5-geoip (ubuntu)

# sudo yum install php5-geoip (centOS)

# sudo pecl install geoip (with PECL)

In Windows environment we have to add extension “php_geoip.dll” with PHP

Download extension from here : http://blog.phpsolutions.co.in/php-5.2.1_geoip-w32.zip

Copy “php_geoip.dll” to xampp “php/ext” .. add a line in php.ini
“extension=php_geoip.dll” and restart xampp

This extension will work on development system using Windows, Apache 2.2.3 and PHP 5.2.10.
We can
check “geoip” with phpinfo() module is loaded.

<?php
$record
= geoip_record_by_name('www.phpsolutions.co.in');
if (
$record) {
print_r($record);
}
?>

Array
(
    [country_code] => US
    [region] => CA
    [city] => Marina...
    [postal_code] =>
    [latitude] => 23.9776792798
    [longitude] => -128.435796741
    [dma_code] => 867
    [area_code] => 400
)

<?php
$result = geoip_record_by_name('78.aaa.yyy.xxx');
var_dump($result);
?>

There is alternative PHP version of the GeoIP API from MaxMind,
but this solution is quite slow on servers. MaxMind uses MaxMind database to display geo locations.

112 Responses to Install geoip on xampp

  1. Can I just say what a relief to find someone who does knows what they’re talking about on the internet. You beyond a doubt know how to bring an issue to light and make it captivating. More people need to read this and understand this side of the story. I cant believe youre not more popular because you definitely have the gift.

  2. Klara says:

    Just wanted to say your blog is kinda awesome. I always like to hear something new about this because I have the similar blog in my Country (paintball sljeme) on this subject so this help´s me a lot. I did a search on the subject matter and found a good number of blogs but nothing like this.Thanks for writing so much in your blog.. Greets, Klara

  3. Anonymous says:

    I’m strongly about it and love learning more on this topic. When possible, since you gain expertise,keep writing and happy blogging,2

  4. I have to say, while looking through hundreds of blogs daily, the theme of this blog is different (for all the proper reasons). If you do not mind me asking, what’s the name of this theme or would it be a especially designed affair? It’s significantly better compared to the themes I use for some of my blogs.

  5. used cookers says:

    Very interesting post. I liked the first part so much as the information are detailed and clear. This blog always puts such good contents. Thank you for the information.

  6. Leroy Addams says:

    hello,what an excellent article this is,I found it on yahoo and I love it very much,I agree with what you have said, lots of things will be learned form your site,but I am not follw well with the last part,can you explain it for me ?I need your answer,and I will keep on watching your blog

  7. Web Design says:

    I saw your web post at http://blog.phpsolutions.co.in/install-geoip-on-xampp… just saying thanks for posting, good article.

  8. Concetta Denoyelles says:

    Hey very cool blog!! Man .. Excellent .. Amazing .. I will bookmark your blog and take the feeds also…I’m happy to find a lot of useful info here in the post, we need develop more techniques in this regard, thanks for sharing. . . . . .

  9. cumpara says:

    It seems we actually think alike, please let me know if you want to chat some more on the topic. I always dream i could write the way you do.

  10. Greetings. I really did some trap surfing and initiate this blog. I firm by way of this blog present up and it is really incredible.I clearly genuinely fancy your website.Perfectly, the chunk of posting is in pledge the least finest on this genuinely worth though subject. I added it and i

  11. bashas says:

    Great items from you, man. I have bear in mind your stuff prior to and you’re simply extremely excellent. I really like what you’ve bought here, certainly like what you are stating and the best way by which you say it. You’re making it entertaining and you still care for to keep it wise. I can’t wait to read far more from you. This is actually a tremendous web site.

  12. Emile Gretzner says:

    I just searched for this website and located it. It has been a great source of ideas.

  13. Anonymous says:

    Certainly completely with all your conclusions and imagine that you’ve made some excellent points. Also, I’m keen on layout , design of this site and the simplicity of navigation. I’ve bookmarked your site and definately will return often!

  14. Anonymous says:

    I really loved this post. You describe this topic well. When hiring home contractors it truly is key to opt for a trusted name in construction. Experienced and efficient staff should strive for excellence and seriously consider every detail of your house.

  15. freakshare says:

    You have certainly been very busy writing up this great post, It was very interesting to read. Can’t wait to see what you write about in the following month.

  16. JORDAN says:

    It’s the exact info. i’m searching for,many thanks!

  17. Anonymous says:

    I’d have to check with you here. Which is not something I usually do! I enjoy reading a post that will make people think. Also, thanks for allowing me to comment!

  18. Anonymous says:

    A powerful share, I simply given this onto a colleague who was doing somewhat evaluation on this. And he actually bought me breakfast as a result of I discovered it for him.. smile. So let me reword that: Thnx for the deal with! But yeah Thnkx for spending the time to debate this, I really feel strongly about it and love studying extra on this topic. If potential, as you turn into experience, would you thoughts updating your weblog with extra details? It is highly helpful for me. Huge thumb up for this weblog publish!

  19. Anonymous says:

    You wouldn’t believe it but I’ve wasted all day digging for some articles about this. You are a lifesaver, it was an great read and has helped me out to no end. Cheers!

  20. Anonymous says:

    Really good web page! I adore any number of the specified research about written and published, together with specially the feedback posted! Since this existence positively obtain coming!

  21. Anonymous says:

    Pretty excellent post. I just stumbled upon your blog and wanted to say that I have quite enjoyed reading your blog posts. Any way I’ll be subscribing for the feed and I hope you article again soon.

  22. Anonymous says:

    I’ll return to check on future articles.I find it truly well structured. Congratulations to the creator of the website

  23. Anonymous says:

    This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work.

  24. Anonymous says:

    Below, everyone express your current observations for this issue. so say the least communicating, I’m going to gain knowledge of your notions.

  25. Anonymous says:

    Im glad I came across this. Im glad I took the time to read on past the first paragraph. Youve got so much to say, so much to offer. I hope people realise this and look into your page.

  26. Anonymous says:

    I had no trouble navigating through all the tabs and information was very easy to access. I found what I wanted in no time at all. Pretty awesome. Would appreciate it if you add forums or something

  27. Anonymous says:

    Nice one, there is actually some great points on this post some of my associates will find this worthwhile, will send them a link, thanks

  28. Anonymous says:

    Never knew that opinions could be this varied. Thanks for all the enthusiasm to offer such helpful information here.

  29. woot says:

    Hiya very cool site!! Guy .. Beautiful .. Superb .. I will bookmark your web site and take the feeds additionally…I am happy to search out so many helpful information right here within the publish, we want develop more strategies on this regard, thanks for sharing.

  30. Anonymous says:

    This blog site is very good! How did you make it .

  31. heather smith says:

    hey all, I was just checking out this blog and I really admire the idea of the article, and have nothing to do, so if anyone want to to have an engrossing convo about it, please contact me on AIM, my title is heather smith

  32. Anonymous says:

    Thank you for such a fantastic blog. Where else could a single get this kind of facts written in these kinds of an incite full way? I have a presentation that I am just now working on, and I had been looking for these kinds of information.

  33. Anonymous says:

    Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

  34. Anonymous says:

    I am glad to be a visitant of this pure site, appreciate it for this rare info!

  35. Anonymous says:

    Happy I found your website not only was I bored as heck terrible cubicle, but I came across some awesome advice. It’s really a delight to be able to bookmark this one!

  36. Anonymous says:

    Good of you to mention this. It might happen to any of us in the future..,This article makes the light that we may find the reality.

  37. rtyecript says:

    I really liked the article, and the very cool blog

  38. Anonymous says:

    Thanks for this great post it was very informative and helped me with my own project I am attempting to complete.

  39. Flash Web Site Design says:

    Man! This unique website rocks ! Install geoip on xampp | PHP Solutions ! Just how did you cause it to appear this very good Salam ! Flash Web Site Design …

  40. Anonymous says:

    Great job here. I really enjoyed what you had to say. Keep going because you definitely bring a new voice to this subject. Not many people would say what youve said and still make it interesting. Well, at least Im interested. Cant wait to see more of this from you.

  41. Anonymous says:

    You gave nice ideas here. I done a research on the issue and learnt most peoples will agree with your blog. Certainly, these practices are unfair; but they say that most of their rules are only to apply to people who overdraw.

  42. Anonymous says:

    I like this info given and it has given me some sort of inspiration to succeed for some reason, so keep up the good work.

  43. Anonymous says:

    Greetings everyone, This website is good quality and so is the way the matter was explained. I like some of the comments as well although I would suggest we all keep it on topic so that to add value to the topic. It will be also encouraging to the person who wrote it if we all could pass it around (for many of us who use bookmarking services such as a reddit, twitter,..). Again, Thanks..

  44. delphi scalper 2.0 says:

    Even though this subject can be incredibly touchy for most folks, my opinion is that there has to be a middle or typical ground that we all can locate. I do appreciate that youve added related and intelligent commentary the following though. Thank you!

  45. Anonymous says:

    Hello, just wanted you to know I have added your site to my bookmarks because of your beautiful blog layout (LOL). But honestly, I believe your site has one of the cleanest design I’ve came across. It honestly makes your blog post easier to read.

  46. Jack3d Supplement says:

    I am glad for commenting to let you know of the outstanding encounter my girl went through viewing your web page. She figured out too many details, with the inclusion of what it is like to possess an excellent helping spirit to make many people effortlessly completely grasp some multifaceted subject matter. You undoubtedly did more than our own expected results. I appreciate you for offering those interesting, trusted, informative not to mention cool guidance on the topic to Kate.

  47. igif says:

    This is often a incredibly good read for me, Must admit you happen to be one from the very best bloggers I ever saw.Thanks for posting this informative article.

  48. Anonymous says:

    I do wish there were more people like you around on the interwebs. Not many people are careful with their words, including myself sometimes. I have written things I would love to take back, goo work, keep it up. 

  49. Anonymous says:

    Admiring the time and effort you put into your blog and detailed information you offer! I will bookmark your blog and have my children check up here often. Thumbs up!

  50. Anonymous says:

    You got numerous positive points there. I made a search on the issue and found nearly all peoples will agree with your blog.

  51. Anonymous says:

    I have to say you sound like a very bright person and I hope someday to be able to write as well as you.

  52. Robb says:

    No doubt the other readers were thinking, “The sun does not shine for a few trees and flowers but for the wide world’s joy..”.

  53. Anonymous says:

    I am not sure how you are getting your information, but good topic. I must spend a while studying more or understanding more. Thanks for Install geoip on xampp | PHP Solutions!

  54. Anonymous says:

    Nice information, many thanks to the author. It is incomprehensible to me now

  55. PaintZoom says:

    Thanks for elaborating the tips.

  56. Anonymous says:

    just needed you to know I have added your site to my Google bookmarks because of your extraordinary blog layout. But seriously, I think your site has one of the freshest theme I’ve came across. It really helps make reading your blog a lot easier.

  57. Anonymous says:

    Youre so cool! I dont suppose Ive read anything like this before. So nice to find somebody with some original thoughts on this subject. realy thank you for starting this up. this website is something that is needed on the web, someone with a little originality. useful job for bringing something new to the internet!

  58. Anonymous says:

    Some really superb posts on this site, regards for contribution.

  59. Anonymous says:

    You’re making some good points in Install geoip on xampp | PHP Solutions. The way you relay your opinions is among the reasons I admire yourI like your writing as I do.

  60. Providencia Byrd says:

    Excellent informations over again.! I am looking forward for more updates=)

  61. Anonymous says:

    Elegant! Beautiful! Love the particular typography. This definitely be a next alternative. You are amazing, theme power team. I Take pleasure in the theme, fonts additionally, the perfect theme. Thanks for this sort of valuable subject. Great occupation! Keep the great perform!

  62. Anonymous says:

    Your artical is really so simple yet retains a touch of elegance and even grace. And with all the options and also customization you could have enabled, I’m sure it would appeal to many people bloggers. It’s extremely commendable that you would like to let all of us, the clients, to use a wide variety of themes for the blogs. Keep these coming!

  63. Terrell Owens says:

    This is the theme I was looking for. It looks really fashionable. You contain given me a big surprise here artical. It is perfectly stunning. Amazing theme! Keep building themes like that. Thanks a lot for positioning out the particular theme for us!

  64. Anonymous says:

    An interesting discussion is worth comment. I think that you should write extra on this topic, it won’t be a taboo topic however generally persons are not enough to speak on such topics. To the next. Cheers

  65. taobao33 says:

    Excellent post. I will bookmark your internet site and be guaranteed to check back again usually.

  66. TV Cabinet Manufacturer says:

    Install geoip on xampp | PHP Solutions Hiya! I simply would like to give a huge thumbs up for the nice info you’ve got right here on this post. I will probably be coming again to your blog for more soon. Regards, TV Cabinet Manufacturer

  67. Anonymous says:

    I the efforts you have put in this, thankyou for all the great blog posts.

  68. Anonymous says:

    Every evening I’m far more impressed by your artical. Thanks for ones efforts throughout expressing that theme. This is a great feature. Cool. Love the choice to possess stats intended for private websites, too! I really like everything concerning this artical.

  69. Minas Legal says:

    I feel that is one of the such a lot vital info for me. And i’m glad reading your article. But should observation on some normal things, The site taste is ideal, the articles is actually nice :D. Excellent activity, cheers.

  70. Anonymous says:

    This motif looks terrific indeed, and it will be readable together with elegant! It will truly prove beneficial for the blog writers. Nice, it beds down my view. Thanks considerably for an individual’s wonderful get the job done! I feel expecting future achivement. Cheers!

  71. Anonymous says:

    I love your blog! did you generate this yourself or did you outsource it? Im seeing for a blog manufacture thats similar so thats the only infer I’m asking. Whether way keep up the nice work I was impressed with your article really..

  72. Elnora says:

    So glad I was able to provide you with the information your required, keep following my future posts, who knows what you will learn that will be of benefit in the future!

  73. Anonymous says:

    Just wanted to say that I’m using my Andoid phone to look at your site right now and it looks fab. Dead easy to read on the screen.

  74. Swarovski Pins says:

    I possess read the article. It’s certainly helpful. We will benefit a whole lot from the idea. Fluent publishing style in addition to vivid words and phrases make united states readers like reading. I may share your own opinions having my pals.

  75. Anonymous says:

    Great blog post, however only a few of the points were actually treated great, I believe digging deep for the topic to really make it more informative will really help, is going to be looking forward to learn more

  76. Anonymous says:

    I totally consider what you actually said inside article and we could learn a lot from the application. The content is very clear as well as view is definite. Looking forward for a update.

  77. renren876 says:

    I like this post, enjoyed this one appreciate it for putting up.

  78. Anonymous says:

    This really answered my drawback, thank you!

  79. dan kennedy says:

    Excellent posts and articles, identified your web site whilst surfing the net, have bookmarked it now, preserve on writing….

  80. nova scotia accommodations says:

    I have loaded your website in 3 different browsers and I must say your blog loads a lot faster then most. Would you mind e-mailing me the name of your web hosting company? My personal email is: Nunoz36@gmail.com. I’ll even sign up through your affiliate link if you would like. Appreciate it

  81. tony says:

    That is the correct weblog for anyone who needs to find out about this topic. You understand a lot its almost exhausting to argue with you (not that I truly would need…HaHa). You undoubtedly put a new spin on a subject thats been written about for years. Nice stuff, simply great!

  82. Anonymous says:

    Very helpful information for me i really need this information thanks for sharing this information.

  83. Anonymous says:

    Very excellent visual appeal on this site, I’d rate it 10 10.

  84. Roberto Redmon says:

    Some truly fantastic blog posts on this internet site , thanks for contribution.

  85. tina says:

    There’s noticeably a bundle to know about this. I assume you made certain good factors in options also.

  86. jack says:

    you’ve got an amazing weblog here! would you like to make some invite posts on my blog?

  87. lisa says:

    Youre so cool! I dont suppose Ive read anything like this before. So good to seek out any individual with some authentic thoughts on this subject. realy thank you for beginning this up. this website is one thing that’s needed on the net, somebody with a little originality. useful job for bringing one thing new to the internet!

  88. Jack3d Reviews says:

    Its such as you learn my thoughts! You appear to understand a lot approximately this, like you wrote the guide in it or something. I think that you simply can do with a few p.c. to drive the message house a bit, however instead of that, this is wonderful blog. A great read. I’ll certainly be back.

  89. Jack3d says:

    Useful information. Lucky me I found your website by accident, and I am shocked why this twist of fate didn’t happened earlier! I bookmarked it.

  90. Jack3d Reviews says:

    You can definitely see your expertise in the work you write. The sector hopes for even more passionate writers like you who are not afraid to mention how they believe. Always go after your heart.

  91. Jack3d Reviews says:

    hi!,I like your writing very much! share we communicate extra about your post on AOL? I require an expert in this house to unravel my problem. Maybe that is you! Having a look forward to look you.

  92. Jack3d says:

    Great work! This is the type of info that should be shared across the web. Disgrace on the seek engines for now not positioning this put up higher! Come on over and talk over with my web site . Thank you =)

  93. Jack3d Reviews says:

    Tremendous things here. I’m very satisfied to peer your article. Thanks so much and I’m taking a look ahead to touch you. Will you kindly drop me a mail?

  94. mbt uk says:

    I’d must check with you here. Which isn’t something I normally do! I get pleasure from studying a submit that will make people think. Also, thanks for allowing me to remark!

  95. Anonymous says:

    I have found the blog site Sunday and began view your blogposts often.I incredibly enjoy to read it content and I’m glad to find this prominent way of writing the article. Thanks a bunch and Regards

  96. Milhal says:

    It truly is extremely difficult to catch important news on blogs on the other hand your issue is restricted with kindly explained. I value your exertion.

    As a final note , allow me thank you for your understanding with my English as (I’m positive you have become aware this by now,), English is not my principal tongue consequently I am utilizing Google Translate to shape out how to record what I actually wish to tell.

  97. oświetlenie ledowe says:

    I am glad for writing to let you know what a outstanding discovery our child had checking your site. She even learned a lot of issues, including what it is like to possess an excellent helping mindset to have most people effortlessly fully understand a variety of advanced subject matter. You really exceeded her expectations. Many thanks for distributing such precious, dependable, educational as well as fun guidance on the topic to Gloria.

  98. jack says:

    After research a number of of the weblog posts on your web site now, and I truly like your way of blogging. I bookmarked it to my bookmark website checklist and will be checking back soon. Pls check out my web site as well and let me know what you think.

  99. Jultkr says:

    Superb goods from you, man. I have comprehend your stuff previous to as a consequence you’re simply particularly brilliant. I really appreciate what you have printed here, certainly like what you’re saying plus the way in which you reveal it. You make it enjoyable moreover you still care for to keep it astute. I can not wait to read far more from you. This is certainly a very good site.

    In conclusion , give permission me thank you for your understanding with my English as (I’m certain you have figured this by now,), English is not my first language accordingly I am using Google Translate to build out how to write down what I truly want to state.

  100. Tick says:

    Youre so cool! I dont suppose Ive read anything like this before. So nice to find somebody with some original thoughts on this subject. realy thank you for starting this up. this website is something that is needed on the web, someone with a little originality. useful job for bringing something new to the internet!

  101. Rodolfo Ricley says:

    This is an excellent news meant for bloggers. It opens admittance to a large spectrum of who find themselves finding a place to style their concerns. With the theme, I could gain the visibility We are having today. Thanks for this informative place, I learned significantly!

  102. Laci Loehner says:

    I am really impressed with your writing skills as well as with the layout on your weblog. Is this a paid theme or did you modify it yourself? Either way keep up the excellent quality writing, it is rare to see a great blog like this one today..

  103. Anonymous says:

    An unputdownable language is worth scuttlebutt. I cerebrate that you should create much on this subject, it power not be a taboo mortal but mostly grouping are not sufficiency to verbalise on such topics. To the succeeding. Cheers like your Install geoip on xampp | PHP Solutions.

  104. lisa says:

    It’s hard to find knowledgeable people on this topic, however you sound like you realize what you’re talking about! Thanks

  105. Anonymous says:

    Excellent post. I used to be checking constantly this blog and I am inspired! Very helpful info particularly the closing section 🙂 I take care of such information a lot. I was seeking this certain info for a very long time. Thank you and good luck.

  106. Juliet Moulinos says:

    Thanks for the blog article.Much thanks again. Cool.

  107. Siemen says:

    Your blog site is extremely helpful. Thanks so much for giving loads of beneficial written content. I have bookmark your web site web-site and can be while not doubt coming back again. When all over again, I value all of your do the trick as well as comeing listed here to talk with me.

  108. Cebalraj says:

    Easy to understand tutorial. Thank you for this.
    Do you happen to know where to download a php_geoip.dll for the newest XAMPP with
    PHP 5.4.4?
    Thank you

  109. It’s going to be ending of mine day, however before end I am reading
    this fantastic article to improve my experience.

  110. castleville says:

    whoah this weblog is great i love reading your articles.
    Keep up the great work! You recognize, lots of people are searching around for this information, you can aid them
    greatly.

  111. MtR says:

    hey bro.
    i have downloaded extension dll file copy paste it
    but didnt get responce in phpinfo();

    i am not using xampp
    using apache and php seperately.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.