Ajouter 'pdflib-php71.sh'

This commit is contained in:
virtubox 2018-06-06 12:40:33 +00:00
parent 6f25d73e03
commit 3601f8382e
1 changed files with 13 additions and 0 deletions

pdflib-php71.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.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
./configure --with-php-config=/opt/plesk/php/7.1bin/php-config
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