Wordpress Site health show imagick, is not installed, or has been disabled.

My wordpress Site health show imagick, is not installed, or has been disabled. So I installed imagick and php-imagick by command line.

sudo apt-get install imagemagick sudo apt-get install php-imagick sudo service apache2 restart

But now imagick still missing on worpress. What should I do next?

Thanks in advance.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Had same issue and figured it out…it’s because the versions of imagick don’t support PHP 8.0.

sudo apt install php8.0-imagick


sudo service apache2 restart

Hi. :) Same issue here. php -i | grep -i imagick result :

imagick module => enabled
imagick module version => 3.4.4
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
Imagick compiled with ImageMagick version => ImageMagick 6.9.7-4 Q16 x86_64 20170114
Imagick using ImageMagick library version => ImageMagick 6.9.7-4 Q16 x86_64 20170114
imagick.locale_fix => 0 => 0
imagick.progress_monitor => 0 => 0
imagick.set_single_thread => 1 => 1
imagick.shutdown_sleep_count => 10 => 10
imagick.skip_version_check => 1 => 1

php -m | grep imagick : just “imagick” lighted in red.

What I should do next ? Thanks :)

Result of command php -i | grep -i imagick and php -m | grep imagick is nothing.

In infol.php

System	Linux wordpress-18 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64
Build Date	Feb 23 2021 15:12:05
Server API	Apache 2.0 Handler
Virtual Directory Support	disabled
Configuration File (php.ini) Path	/etc/php/7.4/apache2
Loaded Configuration File	/etc/php/7.4/apache2/php.ini
Scan this dir for additional .ini files	/etc/php/7.4/apache2/conf.d

My php.ini should be in /etc/php/7.4/apache2 But I try to add


after restart apache nothing happen.

So I try php -i | grep -i php.ini The result is /etc/php/7.4/cli so I added extension to this php.ini file. This time result is

unable to load dynamic library 'imagick', /usr/lib/php/20190902/imagick No such file of directory, cannot open shared object file

I search for in /usr/lib/php/20190902. It not found. But it’s in /usr/lib/php/20190930.

I think this cause a problem. The wrong library location in setting. But how can I modified location of


Hello, @eakrin

What happens when you execute the following commands on the server?

  1. php -i | grep -i imagick
  1. php -m | grep imagick

Can you share the output? Also what you can do is to create an info.php file. You can create a file named info.php (the name doesn’t really matter) and put the following content in the file:

  1. <?php
  2. phpinfo();

You can then check which is the configuration file - php.ini that is currently used and so we can edit it. You can also check this with the PHP -i command again:

  1. php -i | grep -i php.ini

Then you can edit the listed php.ini and add the following line:


Note that this line can already exist there but might be commented out, e.g listed like this: ;extension=imagick

If that is the case just remove the ; and save the php.ini file.

Once this is done you can restart the Apache server and check again.

  1. sudo service apache2 restart

Hope that this helps! Regards, Alex