I am running Site on WordPress latest version. when I do Site health Check it gives me following errors,

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.

I search and try to install but failed, I tried to install via SSH using
@cheapreplicablades.com [~]# /opt/cpanel/ea-php70/root/usr/bin/pecl install imagick

WARNING: channel “pecl.php.net” has updated its protocols, use “pecl channel-update pecl.php.net” to update

downloading imagick-3.4.4.tgz …

Starting to download imagick-3.4.4.tgz (253,434 bytes)
……………………………………………..done: 253,434 bytes
ERROR: failed to mkdir /opt/cpanel/ea-php70/root/usr/share/doc/pecl/imagick/examples

I don’t know what to do, if anyone know kindly help me.

2 Answers
2

It seems as though you dont have the required permissions to install this PHP extension. This is often the case when youre using shared hosting. The best option is to contact your hosting provider and ask them to install this php extension. However if they provide you with a cpanel dashboard you may be able to do it yourself, heres how:

  1. Log into your cpanelCpanel Login

  2. Select your php version, usually under the software section of cpanelSelect PHP Version

  3. Select the imagick option and then your options should be savedSelect Imagick

And that’s the last step. If you don’t have cPanel your best solution is to contact your hosting provider. If it is a self hosted server you will need to contact the server admin to install the php extension for you. I hope this helps!!

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *