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
491 B

  1. #!/bin/bash
  2. apt-get update && apt-get install gcc make autoconf libc-dev pkg-config plesk-php70-dev unzip -y &>/dev/null
  3. cd /opt/plesk/php/7.0/include/php/ext/
  4. wget https://github.com/Zakay/geoip/archive/master.zip
  5. unzip master.zip
  6. cd geoip-master
  7. /opt/plesk/php/7.0/bin/phpize
  8. ./configure --with-php-config=/opt/plesk/php/7.0/bin/php-config
  9. make
  10. make install
  11. echo "extension = geoip.so"> /opt/plesk/php/7.0/etc/php.d/geoip.ini
  12. plesk bin php_handler --reread
  13. service plesk-php70-fpm restart