Error in ImageMagick on PHP 5.6: Imagick was compiled against Image Magick

Started by senthil, Jun 23, 2025, 06:05 AM

Previous topic - Next topic

senthil

Symptoms
  • ImageMagick on PHP 5.6 issue the following error:
    PHP Warning: Version warning: Imagick was compiled against Image Magick version 1692 but version
    1693 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
  • Server is using AlmaLinux 9.5
Cause
This error appears when the compiled version of ImageMagick within the affected version of PHP does
not match the binary.

Resolution
  • Connect to the Plesk server via SSH.
  • Install ImageMagick and libs:
    #yum install ImageMagick ImageMagick-devel
  • Install ImageMagick PECL module:
    #/opt/plesk/php/5.6/bin/pecl install imagick
  • Check if the module is loaded:
    ##/opt/plesk/php/5.6/bin/php -m | grep imagick
    imagick