Virtualmin Configuration: Adding Image Magick to PHP 5.6.5

Tonight I needed to do some work on my Other Blog and noticed that I was unable to edit images directly in WordPress. Yep, I hadn’t installed Image Magick yet and so those functions were not available. If you followed the installation/configuration instructions at my Previous Post, then the following likely applies to you. And it might apply to you anyway. I knew it was just a PECL install away, but I forgot to install Imagick first, and so I got the error “checking Testing /usr/local/bin/MagickWand-config… Doesn’t exist”. If you follow the steps below, it’ll fix it right up.

I’ve distilled it into a few simple steps:

1: Install Image Magick and needed libraries:

yum install ImageMagick-Devel ImageMagick

Now you’re ready to install the PHP PECL library.

2: Install imagick via PECL:

/opt/rh/rh-php56/root/bin/pecl install imagick

3: Enable it in your php.ini

echo "extension=imagick.so" >> /home/username/etc/php5.6/php.ini

4: Restart Apache

systemctl restart httpd

That should do it! Use a phpinfo() to check to make sure the module is there, and you’re good to go!

Print Friendly
Updated: May 10, 2016 — 1:51 pm

Leave a Reply

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

© Ryan's Techs Tidbits
Optimization WordPress Plugins & Solutions by W3 EDGE