View Single Post
  #9  
Old 04-15-2011, 07:51 AM
DanEZPZ DanEZPZ is offline
Senior Member
 
Join Date: Jul 2009
Posts: 55
Quote:
Originally Posted by webizen View Post
Here is the procedure:
  1. download pecl geoip from http://pecl.php.net/package/geoip
    wget http://pecl.php.net/get/geoip-1.0.7.tgz
  2. build geoip.so module
    tar zxf geoip-1.0.7.tgz
    cd geoip-1.0.7
    /usr/local/lsws/lsphp5/bin/phpize
    ./configure --with-php-config=/usr/local/lsws/lsphp5/bin/php-config
    make
    make install
    Note:
    a. you need to install geoip and geoip-devel rpm if not done so (yum install GeoIP-devel).
    b. /usr/local/lsws/lsphp5 is the prefix of running lsphp5.
  3. add line "extension=geoip.so" to your lsphp5 php.ini file.
  4. restart lsws to make it effective.
I assume these instructions are outdated as the path /usr/local/lsws/lsphp5/bin no longer exists.
Reply With Quote