Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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.3.tgz
tar xvzf imagick-3.4.3.tgz
cd imagick-3.4.3
phpize
./configure
make install
rm -rf /tmp/imagick-3.4.3*
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
@meduzen
Copy link
Author

meduzen commented Feb 17, 2020

wget https://gist.githubusercontent.com/meduzen/f514befd1c2dd6ea4b17517132d641de/raw/aba78897379ba1c280ebf2d3bbdc17e6db65828b/imagick3.4.3-PHP7.4-forge.sh
sudo bash imagick3.4.3-PHP7.4-forge.sh

@meduzen
Copy link
Author

meduzen commented Feb 25, 2020

It doesn’t work, see @omdesignz’ fork @danielstgt’s gist for a working script with instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment