How to Install Imagick on PHP 8 Guide – Image Magick

If you are running PHP 8 on a Ubuntu  server and get a WordPress Health Check error that ImageMagick is not installed, then you can try these commands to fix your issue.

Just run from the command line

pecl8.0-sp install imagick

sudo bash -c “echo extension=imagick.so > /etc/php8.0-sp/conf.d/imagick.ini”

Then you’ll need to restart php-fpm for PHP 8 for the change to take effect:

sudo service php8.0-fpm-sp restart

After that’s done, you can confirm that it’s installed by running the following command:

php8.0-sp -i | grep imagick

and then add

extension=imagick.so

to a .user.ini or php.ini file, depending on your server,  in the home directory of your WordPress install

Please make sure you are running PHP 8 on your app in Serverpilot.io or C-panel, if PHP is set to 7.4 it will still give you the same error.

 

For Best Hosting Try


For best hosting Try DigitalOcean and Serverpilot.io

You get Cloud hosting from Digitalocean at a good price and ServerPilot.io lets you setup the server add domains and free SSl. They also have a one click WordPress install.

Get Free $100 dollars for Digital Ocean Click Here

Get Free $10 dollars for ServerPilot Click Here

ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you may use, copy, modify, and distribute in both open and proprietary applications. It is distributed under a derived Apache 2.0 license.

 

WordPress Error When Image Magick is not installed


Under Tools -> SiteHealth

PHP modules perform most of the tasks on the server that make your site run. Any changes to these must be made by your server administrator.

The WordPress Hosting Team maintains a list of those modules, both recommended and required, in the team handbook (opens in a new tab).

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

 

 

TechPog

TechPog

Leave a Reply

Sign up for our Newsletter