The optional module, imagick, is not installed, or has been disabled

Last Revised: October 2, 2021

If in your WordPress Site Health panel you see the message The optional module, imagick, is not installed, or has been disabled, you have the possibility to correct it with some changes.

The optional module, imagick, is not installed, or has been disabled.
The optional module, imagick, is not installed, or has been disabled.

Shared Hosting

In case you have your website with WordPress on a shared hosting, you will need to contact your provider and ask them to activate the PHP imagick extension.

VPS / Dedicated

If you have access to your VPS or dedicated server, you will need to install the PHP imagick extension.

Ubuntu / Debian

apt install imagemagick php-imagick

CentOS / RHEL version 7

yum -y groupinstall "Development Tools"
yum -y install ImageMagick ImageMagick-devel
yum -y install php php-devel php-pear
pecl install Imagick
echo "extension=imagick.so" >> /etc/php.d/50-imagick.ini

CentOS / RHEL version 8

dnf -y install epel-release
dnf config-manager --set-enabled powertools
dnf -y install ImageMagick ImageMagick-devel
dnf -y install php php-devel php-pear
pecl install Imagick
echo "extension=imagick.so" >> /etc/php.d/50-imagick.ini

cPanel Control Panel

To install PHP imagick on cPanel, which usually works on CentOS, we must first install the ImageMagick libraries by SSH.

CentOS / RHEL version 7

yum -y groupinstall "Development Tools"
yum -y install ImageMagick ImageMagick-devel

CentOS / RHEL version 8

dnf -y install epel-release
dnf config-manager --set-enabled powertools
dnf -y install ImageMagick ImageMagick-devel

Once we have the library installed, we can continue from the cPanel panel.

In the Software / Module Installer section, we have the PHP PECL section.

There we will go to the management and select the version of PHP that we want to configure. If we want to have it in all versions, we must do the steps for each of them.

In the “Install a PHP PECL” section we put “imagick” and click on “Install”.

At the end we will have “imagick in the list of extensions of that version of PHP.

Panel de control Plesk

If you have Plesk control panel (Service Provider View), you can install PHP imagick from the PHP Tools and Settings/Settings section.

Once there, the corresponding PHP version is selected and inside the “imagick” option is activated.


About this document

This document is regulated by the EUPL v1.2 license, published in WP SysAdmin and created by Javier Casares. Please, if you use this content in your website, your presentation or any material you distribute, remember to mention this site or its author, and having to put the material you create under EUPL license.