Question

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

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

then

sudo service apache2 restart

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

/etc/php/8.0/cli/conf.d/20-imagick.ini,
imagick
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 http://www.imagemagick.org
Imagick using ImageMagick library version => ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
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

extension=imagick

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 imagick.so 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 imagick.so?

Thanks.