Symptoms
-
In an attempt to run the cronjob on a Plesk server, the message below is shown:
PHP Warning: Version warning: Imagick was compiled against Image Magick version 1690 but version 1691 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
- The same error message can be found in the domain log files.
Cause
The ImageMagick
 package is installed from the remi
repository.
Resolution
- Log into the server via SSH.
- Execute the command below to find the installed
ImageMagick
 packages:# rpm -qa | grep ImageMagick
ImageMagick-libs-6.9.11.23-1.el7.remi.x86_64
ImageMagick-6.9.11.23-1.el7.remi.x86_64 - Remove the foundÂ
ImageMagick
 packages from the step â„–2 by executing the commands below one by one:# rpm -e –nodeps ImageMagick-libs-6.9.11.23-1.el7.remi.x86_64
# rpm -e –nodeps ImageMagick-6.9.11.23-1.el7.remi.x86_64
- Using the vi text editor open the
/etc/yum.repos.d/remi.repo
file. - Add the line below at the end of the
[remi]
section and save the changes to exclude installation ofImageMagick
 packages from theremi
repository:exclude=ImageMagick
- Run the command below to install the
ImageMagick
 package back:# yum install ImageMagick