Browse Source

Ajouter 'pdflib-php71.sh'

master
virtubox 2 years ago
parent
commit
3601f8382e
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      pdflib-php71.sh

+ 13
- 0
pdflib-php71.sh View File

@@ -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