You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
492 B

#!/bin/bash
apt-get update && apt-get install gcc make autoconf libc-dev pkg-config plesk-php70-dev unzip -y &>/dev/null
cd /opt/plesk/php/7.2/include/php/ext/
wget https://github.com/Zakay/geoip/archive/master.zip
unzip master.zip
cd geoip-master
/opt/plesk/php/7.2/bin/phpize
./configure --with-php-config=/opt/plesk/php/7.2/bin/php-config
make
make install
echo "extension = geoip.so" > /opt/plesk/php/7.2/etc/php.d/geoip.ini
plesk bin php_handler --reread
service plesk-php72-fpm restart