Issue
- GD extension to be unavailable, even though the correct settings are in place, and the alt-phpXX-gd package is installed
- The following error appears whenever the GD extension called.
For example:# su -s /bin/bash exampleuser -c "php -v"
PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' (tried: /opt/alt/php81/usr/lib64/php/modules/gd.so
(/opt/alt/php81/usr/lib64/php/modules/gd.so: undefined symbol: gdImageCreateFromAvif), /opt/alt/php81/usr/lib64/php/modules/gd.so.so
(/opt/alt/php81/usr/lib64/php/modules/gd.so.so: cannot open shared object file: No such file or directory))
in Unknown on line 0Environment
- CloudLinux OS
- Alt-PHP
- PHP Selector
Solution
-
Update
alt-libgd
package:yum update alt-libgd
-
If the issue persists after the update, update and remount CageFS:
cagefsctl --force-update && cagefsctl -M
Cause
The alt-phpXX-gd
package is updated, but the alt-libgd
package remains outdated.
Comments
1 comment
Do we need to update and remount the CageFS after the package update?
I think no need!
Please sign in to leave a comment.