On CentOS 6 I cannot install GeoIP even though many websites describe installing GeoIP with the following commands:
Active2 years, 7 months ago
Today I will show you how to install the GeoIP module step by step. First you need to have PHP installed on your server and them you can start the steps below 1 - Download the epel.
This article explains how to setup and install Mod_GeoIP module for Apache in RHEL and CentOS using EPEL repository with YUM package manager utility. We assume that you already have running RHEL and CentOS system with a working LAMP (Linux, Apache, MySQL and PHP) setup. This quick guide will explain the steps you need to update CentOS or upgrade CentOS to the latest version. Use the “update” option to upgrade all of your CentOS system software to the latest version with one operation.
I get unixman83unixman83
No package GeoIP available.
1,00755 gold badges2121 silver badges3333 bronze badges
2 Answers
Seems like you need to add an additional repository. In CentOS5 the Geoip stuff was located in Centos Extras. Check out this link: http://wiki.centos.org/AdditionalResources/Repositories
If the package is not in Extras try out the EPEL repo (howto is in the link above), they have the packages:http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/letter_g.group.html
zaub3r3rzaub3r3r
How To Install Webmin On Centos 6
Expanding on the accepted answer above by @zaub3r3r - (Sorry I don't have enough rep to comment here)
GeoIP is in EPEL. You might have it but it may not be enabled - if this is the case then try:
How To Install Geoip On Centos 6 Vs Centos Server
This had me stumped for ages today until I realised what was going on.
JohnJohn
Not the answer you're looking for? Browse other questions tagged centoscentos6geoip or ask your own question.
Active2 years, 10 months ago
I can't get the GeoIP PHP extension working on CentOS 7 and PHP 5.5.21.
I first started with
yum install php-pecl-geoip and restarted httpd. I then did a simple test:
I got an error 500, and in the error log, I see
PHP Fatal error: Call to undefined function geoip_record_by_name()
So I figured the yum package was bad and removed it. I then did
pecl install geoip and enabled the extension /etc/php.d/geoip.ini with extension=geoip.so and restarted httpd. Same error - undefined function.
To make sure the install was correct, I tried the pecl install again and received this output:
pecl/geoip is already installed and is the same as the released version 1.0.8
I do have Apache's mod_geoip installed. Do the 2 conflict with each other?
What else can I check?
PatPat
1 Answer
It looks like you've obtained PHP 5.5 from Red Hat Software Collections. Unfortunately this SCL doesn't include the PECL geoip extension, so you will need to install it yourself.
Michael Hampton♦Michael Hampton
How To Install Geoip On Centos 6 Vs Centos 7![]()
185k2929 gold badges347347 silver badges681681 bronze badges
Not the answer you're looking for? Browse other questions tagged phphttpdgeoip or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |