/usr/local/lsws/lsphp71/bin/pecl install http://pecl.php.net/get/geoip-1.1.1.tgz
echo "extension=geoip.so" > /usr/local/lsws/lsphp71/etc/php.d/20-geoip.ini
pkill lsphpchecking for PHP includes... -I/usr/local/lsws/lsphp71/include/php -I/usr/local/lsws/lsphp71/include/php/main -I/usr/local/lsws/lsphp71/include/php/TSRM -I/usr/local/lsws/lsphp71/include/php/Zend -I/usr/local/lsws/lsphp71/include/php/ext -I/usr/local/lsws/lsphp71/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lsws/lsphp71/lib64/php/modules
checking for PHP installed headers prefix... /usr/local/lsws/lsphp71/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for geoip support... yes, shared
checking for geoip files in default path... not found
configure: error: Please reinstall the geoip distribution
ERROR: `/var/tmp/geoip/configure --with-php-config=/usr/local/lsws/lsphp71/bin/php-config' failed
yum install geoip
yum install geoip-devel
then recompile it again.