Php7.4 Startup: Unable to load dynamic library

When upgrading php from 7.2 to 7.4 in centos 8, then restart php-fpm service, an error message below occoured.

NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '' (tried: /usr/lib64/php/modules/ (/usr/lib64/php/modules/ undefined symbol: zip_register_cancel_callback_with_state), /usr/lib64/php/modules/ (/usr/lib64/php/modules/ cannot open shared object file: No such file or directory)) in Unknown on line 0

Check out the file, it does exists,

ls -lh /usr/lib64/php/modules/
-rwxr-xr-x. 1 root root 78K Jul 9 2020 /usr/lib64/php/modules/

This is because the libzip version does not match the needed, libzip should auto be updated. Run

the following command to update libzip, and then restart php-fpm service.

yum install  -y libzip

Leave a Reply

Your email address will not be published. Required fields are marked *