• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue geoip doesn't work in php 7.3.17 after updating plesk

python

Regular Pleskian
geoip was installed and working fine in version 7.2.30 php, when updating to version 7.3.17, plesk did not install geoip.

How can I keep geoip working in php 7.3?
 
Plesk doesn't ship php geoip module but you can compile it by yourself with the following steps:

# yum install geoip-devel plesk-php73-devel make gcc
# /opt/plesk/php/7.3/bin/pecl install http://pecl.php.net/get/geoip-1.1.1.tgz
# echo "extension=geoip.so" > /opt/plesk/php/7.3/etc/php.d/geoip.ini
# plesk bin php_handler --reread

and check that geoip module is loaded:

# /opt/plesk/php/7.3/bin/php -m | grep geoip
geoip
 
Hi... I am trying install GeoIP in my Plesk Obsidian without any success.
Try the steps above but I got:
ERROR: `/tmp/geoip/configure --with-php-config=/opt/plesk/php/8.1/bin/php-config' failed

I am approaching this the wrong way...
I am a newbie in plesk
 
Hi... I am trying install GeoIP in my Plesk Obsidian without any success.
Try the steps above but I got:
ERROR: `/tmp/geoip/configure --with-php-config=/opt/plesk/php/8.1/bin/php-config' failed

I am approaching this the wrong way...
I am a newbie in plesk
Looks like PHP8.1 is not supported by the latest geoip-1.1.1 - PECL :: Package :: geoip 1.1.1
There is only support for PHP7 is mentioned.
I can successfully compile this module for Plesk PHP7.4 but can't for PHP8.x
 
Back
Top