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
523 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.1/include/php/ext/
  4. wget https://github.com/dompdf/dompdf/releases/download/v0.8.2/dompdf_0-8-2.zip
  5. unzip dompdf_0-8-2.zip
  6. cd dompdf_0-8-2
  7. /opt/plesk/php/7.1/bin/phpize
  8. ./configure --with-php-config=/opt/plesk/php/7.1bin/php-config
  9. make
  10. make install
  11. echo "extension = geoip.so" > /opt/plesk/php/7.1/etc/php.d/dompdf.ini
  12. plesk bin php_handler --reread
  13. service plesk-php72-fpm restart