Ajouter 'geoip.sh'

This commit is contained in:
virtubox 2016-12-14 12:43:14 +00:00
parent b8158bbd09
commit ca86967e5d
1 changed files with 13 additions and 0 deletions

geoip.sh Normal file
View File

@ -0,0 +1,13 @@
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.0/include/php/ext/
wget https://github.com/Zakay/geoip/archive/master.zip
unzip master.zip
cd geoip-master
./configure --with-php-config=/opt/plesk/php/7.0/bin/php-config
make install
echo "extension = geoip.so"> /opt/plesk/php/7.0/etc/php.d/geoip.ini
plesk bin php_handler --reread
service plesk-php70-fpm restart