Topic: php 7.3.32 : zip not found as non-root user
Hello,
I am under Centos 7.9
If I run the following php command as root user, I receive a message with no error :
# php --ri zip
zip
Zip => enabled
Zip version => 1.19.2
Libzip version => 1.7.3
BZIP2 compression => Yes
XZ compression => Yes
ZSTD compression => No
AES-128 encryption => Yes
AES-192 encryption => Yes
AES-256 encryption => Yes
But the same command as non-root user returns an error message :
$ php --ri zip
PHP Warning: PHP Startup: Unable to load dynamic library 'zip.so' (tried: /usr/lib64/php/modules/zip.so (/usr/lib64/php/modules/zip.so: undefined symbol: zip_register_cancel_callback_with_state), /usr/lib64/php/modules/zip.so.so (/usr/lib64/php/modules/zip.so.so: undefined symbol: zip_register_cancel_callback_with_state)) in Unknown on line 0
Extension 'zip' not present.
It only happens with the zip extension.
Has anybody an idea on how to solve this ?
Regards,
Alain