Symptoms
You may notice the following error in your PHP logs:
[01-Jan-20XX 00:00:00 UTC] PHP Warning: Version warning: Imagick was compiled against ImageMagick version 1692 but version 1693 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
Description
This error appears when the compiled version of ImageMagick within the affected version of PHP does not match the binary.
Workaround
Reinstalling the ImageMagick plugin via PECL will recompile the plugin properly. Below are the instructions to reinstall the plugin via the command line on ea-php81. Please note that each version of PHP has its own compiled plugins, so make sure to change the command path to reflect your affected version:
- Access the server via SSH as the root user
- Remove the currently installed ImageMagick plugin from the affected version of PHP:
/opt/cpanel/ea-php81/root/usr/bin/pecl uninstall imagick
- Reinstall ImageMagick:
/opt/cpanel/ea-php81/root/usr/bin/pecl install imagick
- If running on CloudLinux, remount cageFS for all users to update the PHP configuration:
cagefsctl -M
Comments
0 comments
Article is closed for comments.