
04-15-2011, 07:51 AM
|
|
Senior Member
|
|
Join Date: Jul 2009
Posts: 55
|
|
Quote:
Originally Posted by webizen
Here is the procedure: - download pecl geoip from http://pecl.php.net/package/geoip
wget http://pecl.php.net/get/geoip-1.0.7.tgz
- 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.
- add line "extension=geoip.so" to your lsphp5 php.ini file.
- restart lsws to make it effective.
|
I assume these instructions are outdated as the path /usr/local/lsws/lsphp5/bin no longer exists.
|