Build & Install ImageMagick on PHP 7

# Install build dependencies
yum install php-devel ImageMagick-devel
# Get latest version from https://pecl.php.net/package/imagick
cd /tmp
wget https://pecl.php.net/get/imagick-3.4.1.tgz
tar -zxf imagick-3.4.1.tgz
cd imagick-3.4.1
phpize
./configure
make install
# The extension file will be placed in the PHP extensions folder; it just needs to be
# added to your php.ini or /etc/php.d/ file(verify path):
# extension=imagick.so

Leave a Reply

Your email address will not be published. Required fields are marked *