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 https://pecl.php.net/get/imagick-3.4.0.tgz
tar xvzf imagick-3.4.0.tgz
cd imagick-3.4.0
/opt/sp/php7.0/bin/phpize
./configure --with-php-config=/opt/sp/php7.0/bin/php-config
make install
rm -rf /tmp/imagick-3.4.0*
echo extension=imagick.so >> /etc/php7.0-sp/php.ini
service php7.0-fpm-sp restart

apt-get install pkg-config libmagickwand-dev -y && mkdir ~/downloads && cd ~/downloads && wget https://pecl.php.net/get/imagick-3.4.0.tgz && tar xvzf imagick-3.4.0.tgz && cd imagick-3.4.0 && /opt/sp/php7.0/bin/phpize && ./configure --with-php-config=/opt/sp/php7.0/bin/php-config && make install && rm -rf /tmp/imagick-3.4.0* && 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