parent root
PHP: Installation - Manual

Installation

This » PECL extension is not bundled with PHP.

Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: » https://pecl.php.net/package/geoip.

add a noteadd a note

User Contributed Notes 3 notes

up
-7
Justin
11 months ago
sudo su
yum install GeoIP-devel
mkdir /root/tmp
pear config-set temp_dir /root/tmp
pecl install -f geoip-1.1.1 # (Or latest)
Add 'extension=geoip.so' to /etc/php.ini
up
-31
Anonymous
6 years ago
@Centos 6.4
# yum install GeoIP-devel (from yum repo, epel)
# pecl install geoip
then, as prompt, put "extension=geoip.so" into php.ini. Works
up
-40
mikey03062 at yahoo dot com
6 years ago
if you are using RH (or CentOS) a simple

yum install php-pecl-geoip

worked for me.    So, before you read all the rest of these "install" instructions, try that.
To Top
parent root