WHM/CPanel ImageMagick 100 %
How to Install ImageMagick on cPanel Server



What is ImageMagick?

ImageMagick is software designed to display, convert, and edit raster and vector images. ImageMagick is fantastic for web performance It can be leveraged with PHP by installing the ImageMagick PHP extension on cPanel servers.

Step 1: Install ImageMagick on Centos

If you are using cpanel control panel on centos then you can also run this from the command line to install ImageMagick

CentOS 7 / CloudLinux 7

:
  yum install ImageMagick ImageMagick-devel -y

Step 2: Install the ImageMagick PHP Extension


The installation varies based upon which kind of PHP you want to use the extension with. You can use the extension with just EA-PHP or ALT-PHP, or you can use it with both simultaneously.

EA-PHP Extension via Command Line

Note:
You need to run all command as a root user

Find the binaries for PECL for all versions of PHP that you have installed:

find /opt/cpanel/ -iname pecl | grep bin

2. Run this command for each version of EA-PHP that needs to make use of the
:
   extension:/opt/cpanel/ea-php74/root/usr/bin/pecl install imagick
3. On CloudLinux servers, CageFS needs to be updated after installing ImageMagick for EA-PHP. This is best done inside of a screen session:
screen -S updateCageFS
cagefsctl -u Reboot Server!.

Install EA-PHP Extension using WHM

Log in to WHM as the root user.
Navigate to Home Software Module Installers.

Click on the Manage link to the right of PHP Pecl.
Select the version of PHP from the drop-down menu, and click Apply.
Under Install a PHP Pecl, enter imagick (without the quotes).
Click Install Now.
If the server is CloudLinux update the cage by navigating to: Home Plugins CageFS User Manager
Then click on the Update CageFS Skeleton button on the bottom right
If you are using LiteSpeed or the LSAPI handler with mod_lsapi, you may also need to restart detached PHP processes before you can make use of the extension.

Install EA-PHP Extension in WHM Follow these 8 steps!



  1. Log in to WHM as the root user.
  2. Navigate to Home Software Module Installers.
  3. Click on the Manage link to the right of PHP Pecl.
  4. Select the version of PHP from the drop-down menu, and click Apply.
  5. Under Install a PHP Pecl, enter imagick (without the quotes).
  6. Click Install Now.
  7. If the server is CloudLinux update the cage by navigating to: Home Plugins CageFS User Manager
  8. Then click on the Update CageFS Skeleton button on the bottom right
  9. If you are using LiteSpeed or the LSAPI handler with mod_lsapi, you may also need to restart detached PHP processes before you can make use of the extension. The following article outlines how this is done:

After completing all these steps reboot your server and now ImageMagick has successfully installed on your cpanel server/centos7

------------------------------------





php disabled functions open + exec
Home Software MultiPHP INI Editor
ImageMagick

:
https://serverconfig.net/how-to-inst...cpanel-server/
https://www.servernoobs.com/863-2/