Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installing Image Magick for PHP 7 on a Server Pilot managed server
apt-get install pkg-config libmagickwand-dev -y
cd ~/downloads
wget http://pecl.php.net/get/imagick-3.4.0RC2.tgz
tar xvzf imagick-3.4.0RC2.tgz
cd imagick-3.4.0RC2
/opt/sp/php7.0/bin/phpize
./configure
make install
rm -rf /tmp/imagick-3.4.0RC2*
echo extension=imagick.so >> /etc/php7.0-sp/php.ini
service php7.0-fpm-sp restart

apt-get install pkg-config libmagickwand-dev -y && cd ~/downloads && wget http://pecl.php.net/get/imagick-3.4.0RC2.tgz && tar xvzf imagick-3.4.0RC2.tgz && cd imagick-3.4.0RC2 && /opt/sp/php7.0/bin/phpize && ./configure && make install && rm -rf /tmp/imagick-3.4.0RC2* && echo extension=imagick.so >> /etc/php7.0-sp/php.ini && service php7.0-fpm-sp restart

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