Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mildlygeeky/e7067c285a2586a5ea78 to your computer and use it in GitHub Desktop.
Save mildlygeeky/e7067c285a2586a5ea78 to your computer and use it in GitHub Desktop.
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