Fix missing imagick module in wordpress

If you have seen the warning that the optional module imagick is not installed or has been disabled on your site health panel and are looking for a resolution, you are at the right place. When you visit your WordPress dashboard, there you will see a site health notification saying you must take a look at the issues on site health screen. Sometimes it is the missing imagick module and sometimes another module like exif or intl. In this post, I will show you how to fix this problem on a dedicated server.

According to php.net,

Imagick is a native php extension to create and modify images using the ImageMagick API. ImageMagick is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF.

php.net

Imagick is an optional module but a recommended one for delivering better performance and superior reader experience. It helps in image processing, converting image formats, and to resize images.

Now let’s discuss the fix.

This fix is for dedicated servers and for those users with access to WHM. Imagick module can be installed directly from WHM.

Login to WHM as root user and search for module installers. You can find it in the software section in the WHM. Click on it.

Here you need to go to PHP PECL to install the imagick module. Click on PHP PECL to go to PHP PECL Installer. Select the php version you are using on your website and then search for the imagick module in the search box or just click on show available modules.

When you search for the imagick module, it will show you the available imagick module and the version. In the image below the imagick version is 3.7.0.

Now, click on install to install the imagick module. It will take a few minutes to complete the process and at the end you will receive the message build process completed successfully and imagick extension is enabled in php.ini. Now, click on go back and you will see a list of installed PHP PECls on the PHP PECL installer screen including the modules you may have previously installed from there.

Go back to your blog and clear all the caches. Refresh the site health screen and you will see that the warning is gone.

Now go to the info tab on the site health screen. Here you will need to check under the media handling tab. You will see that the version of imagick module is listed here. The media handling section also includes a list of ImageMagick supported file formats.

ImageMagick supports following file formats:

3FR, 3G2, 3GP, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV

Fix missing zip or exif module

This was the fix for the imagick module. However, if you receive a site health warning regarding another missing optional module like zip, exif, fileinfo or intl, this fix will not work since you cannot install them from PHP-PECL. However, you can fix these issues as well from your WHM if you are on a dedicated server.

If the warning is regarding a different module than imagick, search for easy apache 4 in WHM. You will find it in the software section of your WHM. When you click on easy apache 4, you will be taken to a list of profiles available for your server. At the top, you will find the currently installed packages. Click on customize and then on PHP extensions.

Here you will find a list of php extensions available for each of the php versions available in your account. Choose the extension for the version you are using. For example, if you are using php 8.1 and looking for exif, you must select and install php81-php-exif. If you are using php 8.1 and looking for zip module, you need to install php81-php-zip. Once you have installed the required php extension, click on review on the left and then on provision. The provision process lasts a few minutes. Go back to your blog and clear all the caches. Refresh the site health page and you will see the warning is gone.

Suggested :
Install NGINX reverse proxy easily in WHM
Change PHP version of your wordpress website