Browse Source

Ajouter 'pdflib-php71.sh'

master
virtubox 3 years ago
parent
commit
3601f8382e
  1. 13
      pdflib-php71.sh

13
pdflib-php71.sh

@ -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.1/include/php/ext/
wget https://github.com/dompdf/dompdf/releases/download/v0.8.2/dompdf_0-8-2.zip
unzip dompdf_0-8-2.zip
cd dompdf_0-8-2
/opt/plesk/php/7.1/bin/phpize
./configure --with-php-config=/opt/plesk/php/7.1bin/php-config
make
make install
echo "extension = geoip.so" > /opt/plesk/php/7.1/etc/php.d/dompdf.ini
plesk bin php_handler --reread
service plesk-php72-fpm restart
Loading…
Cancel
Save