How to install and configure Geoip

You can  install Geoip via /scripts/easyapache on a  cPanel server.

On other servers you can  try  :

pecl install geoip

or

cd /usr/local/src
 wget http://pecl.php.net/get/geoip
tar zxvf geoip
 cd geoip-1.0.7
phpize
  ./configure
  make
  make check
  make install

 

Once Geoip is installed then  install geoip database from  here :

http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
cd /opt/geoip/share/GeoIP

wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz

gunzip GeoLiteCity.dat.gz
cp -p  GeoLiteCity.dat GeoIPCity.dat
Advertisements
Leave a comment

Leave your opinion

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: