Issue
The Imagick extension isn't loaded with the following warnings:
[11-Oct-2021 13:18:01 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /opt/alt/php74/usr/lib64/php/modules/imagick.so (libMagickWand-7.Q16HDRI.so.7: cannot open shared object file: No such file or directory), /opt/alt/php74/usr/lib64/php/modules/imagick.so.so (/opt/alt/php74/usr/lib64/php/modules/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Environment
- cPanel
- CloudLinux 8
- PHP Selector enabled
- alt-ImageMagick
- alt-ImageMagick-libs
- alt-php**-pecl-ext
Solution
1. Check if the PHP Selector is enabled and configured.
2. Check under the user if the PHP is Alt-PHP
$ php -v
$ php -i | head
and ImageMagick is loaded:
$ php -i | grep magi -i
3. If the extension isn't presented in the output, make sure that the alt-phpXX-pecl-ext packages are installed and up to date as well as alt-ImageMagick and alt-ImageMagick-libs:
rpm -qa | grep pecl-ext
yum update alt-php*-pecl-ext
yum update alt-ImageMagick*
4. If they are installed and have the latest versions, you may reinstall alt-ImageMagick and alt-ImageMagick-lib:
yum reinstall alt-ImageMagick*
5. In case of package conflicts:
rpm -e --justdb --nodeps alt-ImageMagick-libs
rpm -e --justdb --nodeps alt-ImageMagick
yum install alt-ImageMagick
6. If the packages were installed from a testing repo, try to downgrade them:
yum downgrade alt-ImageMagick*
Useful links
Comments
0 comments
Please sign in to leave a comment.