php 7.3.32 : zip not found as non-root user

Issues related to applications and software problems
Post Reply
alaindominique
Posts: 8
Joined: 2014/04/06 19:27:10

php 7.3.32 : zip not found as non-root user

Post by alaindominique » 2021/11/09 20:06:15

Hello,

I am under Centos 7.9
If I run the following php command as root user, I receive a message with no error :

Code: Select all

# 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 :

Code: Select all

$  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

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: php 7.3.32 : zip not found as non-root user

Post by pjsr2 » 2021/11/09 21:31:07

Do the root and the non-root user use the same version of php? In other words, do you have multiple versions of php installed?


Post Reply