diff --git a/xenforo_install_magic/imagick3.4.4-PHP7.4-forge.sh b/xenforo_install_magic/imagick3.4.4-PHP7.4-forge.sh new file mode 100644 index 00000000..4d076718 --- /dev/null +++ b/xenforo_install_magic/imagick3.4.4-PHP7.4-forge.sh @@ -0,0 +1,20 @@ +#!/bin/bash +if [ "$EUID" -ne 0 ] + then echo "Please run as root" + exit +fi + +apt-get install pkg-config libmagickwand-dev -y +cd /tmp +wget https://pecl.php.net/get/imagick-3.4.4.tgz +tar xvzf imagick-3.4.4.tgz +cd imagick-3.4.4 +phpize +./configure +make install +cd /home/nonroot/ +rm -rf /tmp/imagick-3.4.4* +echo extension=imagick.so >> /etc/php/7.4/cli/php.ini +echo extension=imagick.so >> /etc/php/7.4/fpm/php.ini +service php7.4-fpm restart +service nginx restart