Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
NickTheGreek

How to install ImageMagick on cPanel with EasyApache 4

Recommended Posts

Install-ImageMagick-300x200.jpg

 

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!

 

https://grepitout.com/install-imagemagick-cpanel-easyapache4/

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×