cPanel & WHM Version 114 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Display Installed (but unsupported) PHP modules in EasyApache 4

feldon27 shared this idea 8 months ago
Needs Review

EasyApache 4 does not list modules it does not support, even if they are properly installed, leading to potential confusion.

Background: ImageMagick and its popular fork GraphicMagick are scriptable CLI graphic editors useful for generating images with watermarks, superimposed text, multi-layered graphics, etc. Imagick and Graphick are PHP modules that support a subset of ImageMagick and GraphicMagick functionality. Both modules are installable on CentOS 7 with Pecl and on CentOS 8 and equivalents with EPEL.

For example on CentOS 7:

yum install ImageMagick ImageMagick-devel ImageMagick-perl
Once ImageMagick is installed, you may go to Software -> Module Installers -> PHP PECL and install imagick for each version of PHP:

/opt/cpanel/ea-php56/root/usr/bin/pecl install imagick
/opt/cpanel/ea-php72/root/usr/bin/pecl install imagick
/opt/cpanel/ea-php74/root/usr/bin/pecl install imagick

If you run these commands, they will each report the presence of imagick, but EasyApache 4 stubbornly refuses to show that they are installed:

ea-php56 -m | grep imagick
ea-php72 -m | grep imagick
ea-php74 -m | grep imagick
It seems like active, correctly installed PHP modules should at least be listed in EasyApache 4 even if they are not selectable and not supported by cPanel Inc.

Leave a Comment
Attach a file