Ajouter 'geoip.sh'
This commit is contained in:
parent
b8158bbd09
commit
ca86967e5d
|
@ -0,0 +1,13 @@
|
||||||
|
#!/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.0/include/php/ext/
|
||||||
|
wget https://github.com/Zakay/geoip/archive/master.zip
|
||||||
|
unzip master.zip
|
||||||
|
cd geoip-master
|
||||||
|
/opt/plesk/php/7.0/bin/phpize
|
||||||
|
./configure --with-php-config=/opt/plesk/php/7.0/bin/php-config
|
||||||
|
make
|
||||||
|
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
|
Loading…
Reference in New Issue