SOLVED imagick PHP Extension not found in EasyApache

Jul 24, 2018
14
3
3
Romania
cPanel Access Level
Website Owner
Following the updated version of How to install imagick on cPanel WHM (https://support.cpanel.net/hc/en-us...to-Install-ImageMagick-for-EA-PHP-and-ALT-PHP), I have installed the Imagick PHP PECL module for all my PHP versions as can be seen in the attached screenshot.

However, the PHP extension cannot be found and installed in EasyApache PHP Extensions (see screeshot attached)

I've tried to restart the entire server, not only the PHP-FPM, but still the imagick extension is not found on phpinfo() and of course it doesn't work on any web test page.

On the PHP CLI, I've tried to check if the imagick extension is installed and looks like it is:

Code:
php -m | grep imagick
imagick
What should I do to have it enabled and working on the PHP web server?
 

Attachments

Sajawal

Active Member
Sep 10, 2020
44
6
8
Pakistan
cPanel Access Level
Root Administrator
Following the updated version of How to install imagick on cPanel WHM (https://support.cpanel.net/hc/en-us...to-Install-ImageMagick-for-EA-PHP-and-ALT-PHP), I have installed the Imagick PHP PECL module for all my PHP versions as can be seen in the attached screenshot.

However, the PHP extension cannot be found and installed in EasyApache PHP Extensions (see screeshot attached)

I've tried to restart the entire server, not only the PHP-FPM, but still the imagick extension is not found on phpinfo() and of course it doesn't work on any web test page.

On the PHP CLI, I've tried to check if the imagick extension is installed and looks like it is:

Code:
php -m | grep imagick
imagick
What should I do to have it enabled and working on the PHP web server?
Are you using Cloudlinux or Litespeed on your server too?
 

quietFinn

Well-Known Member
Feb 4, 2006
1,394
179
193
Finland
cPanel Access Level
Root Administrator
Following the updated version of How to install imagick on cPanel WHM (https://support.cpanel.net/hc/en-us...to-Install-ImageMagick-for-EA-PHP-and-ALT-PHP), I have installed the Imagick PHP PECL module for all my PHP versions as can be seen in the attached screenshot.

However, the PHP extension cannot be found and installed in EasyApache PHP Extensions (see screeshot attached)

I've tried to restart the entire server, not only the PHP-FPM, but still the imagick extension is not found on phpinfo() and of course it doesn't work on any web test page.

On the PHP CLI, I've tried to check if the imagick extension is installed and looks like it is:

Code:
php -m | grep imagick
imagick
What should I do to have it enabled and working on the PHP web server?
It is enabled and working, but it is not in EasyApache because it can't be installed in EasyApache.
Use phpinfo to check that it's enabled and working.
 
Jul 24, 2018
14
3
3
Romania
cPanel Access Level
Website Owner
It is enabled and working, but it is not in EasyApache because it can't be installed in EasyApache.
Use phpinfo to check that it's enabled and working.
I already tried this but it's not there. Nothing found using the word 'imagick'. Also tried the test mentioned in that tutorial article, but nothing returns:
Code:
lynx --dump https://mysite.com/phpinfo.php | grep -i "imagick module"
I tried to manually install it using CLI as root:

Code:
yum install ImageMagick ImageMagick-devel -y
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
 * EA4: 93.115.203.100
 * cpanel-addons-production-feed: 93.115.203.100
 * cpanel-plugins: 93.115.203.100
 * base: de.mirrors.clouvider.net
 * epel: ftp.plusline.net
 * extras: mirror.checkdomain.de
 * updates: mirror.ratiokontakt.de
Package ImageMagick-6.9.10.68-6.el7_9.x86_64 already installed and latest version
Package ImageMagick-devel-6.9.10.68-6.el7_9.x86_64 already installed and latest version
Nothing to do
 
Jul 24, 2018
14
3
3
Romania
cPanel Access Level
Website Owner
Problem fixed
Looks like the problem was PHP-FPM that needed to be restarted.
I thought that restarting the OS will include this, but it didn't.

If anyone encounters the same issue, restart the PHP-FPM service on WHM, then the phpinfo() updates accordingly.

Thanks for your reply @quietFinn and @Sajawal :)
 
  • Like
Reactions: Sajawal

quietFinn

Well-Known Member
Feb 4, 2006
1,394
179
193
Finland
cPanel Access Level
Root Administrator
In your 1st post the 2nd picture shows that you have installed imagick for PHP 7.4.
When you tested it with phpinfo was that site where you tested it using PHP 7.4?

Seems you fixed it while I was writing this...
 

Sajawal

Active Member
Sep 10, 2020
44
6
8
Pakistan
cPanel Access Level
Root Administrator
Problem fixed
Looks like the problem was PHP-FPM that needed to be restarted.
I thought that restarting the OS will include this, but it didn't.

If anyone encounters the same issue, restart the PHP-FPM service on WHM, then the phpinfo() updates accordingly.

Thanks for your reply @quietFinn and @Sajawal :)
Good to hear that issue has been resolved, I also faced this issue today and in my case, it was cagefs that causes the issue.