Install ImageMagick on cPanel with EasyApache 4
This post will help you to install ImageMagick on cPanel with EasyApache 4. ImageMagick is mainly used to create, edit and convert bitmap images. It supports a variety of image formats. Please click here to get the supported image formats.
The ImageMagick can be installed using a simple cPanel script (/scripts/installimagemagick) in the older version of cPanel, but in newer versions of cPanel with EasyApache 4 uses another method to install it. Please check it below:
yum install ImageMagick-devel ImageMagick-c++-devel ImageMagick-perl
Once the installation is over, run the following command to verify if it is working
/usr/bin/convert --version
Install ImageMagick PHP extension on cPanel with EasyApache 4
/opt/cpanel/ea-php56/root/usr/bin/pecl install imagick
Add ImageMagick extension into the PHP 5.6 configuration file to load the module.
vim /opt/cpanel/ea-php56/root/etc/php.ini
Add the following into it:
extension=imagick.so
Restart the web server
service httpd restart
Then verify the installation
/opt/cpanel/ea-php56/root/usr/bin/php -m | grep imagick
Note: If you would like to enable ImageMagick PHP module on PHP 7.0, you just need to update the correct binary paths on the above installation.
ie.,
/opt/cpanel/ea-php56/root/usr/bin/pecl to /opt/cpanel/ea-php70/root/usr/bin/pecl /opt/cpanel/ea-php56/root/etc/php.ini to /opt/cpanel/ea-php70/root/etc/php.ini /opt/cpanel/ea-php56/root/usr/bin/php to /opt/cpanel/ea-php70/root/usr/bin/php
If you would like to enable the ImageMagick PHP module on the other PHP versions available on EasyApache 4, please do the same by changing the correct binary path.
That’s it!
If you like this post and wish to receive more articles from us, please like our FB page: Grepitout
Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.
For more details on our services, please drop us an E-mail at info@grepitout.com
Thanks for sharing this!
[…] Install ImageMagick on cPanel server Here […]
Thanks for sharing, solved my problem. Other installation methods didnt work on WHM/Cpanel server except this.