You cannot 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
Bash
13 lines
523 B
Bash
5 years ago
|
#!/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
|