Good morning everyone, I am writing to you because on my Nextcloud server, since the first installation I keep receiving the following error message:
php -v
PHP Warning: PHP Startup: Unable to load dynamic library ‘redis.so’ (tried: /usr/lib64/php/modules/redis.so (/usr/lib64/php/modules/redis.so: undefined symbol: php_json_decode_ex), /usr/lib64/php/modules/redis.so.so (/usr/lib64/php/modules/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
NOTE: I try to post server config details, but I’m unable to paste collected detail in right format, someone can provide me some hints about?
In the hope that someone can help me solve this problem (which fortunately does not affect the functionality of the system), I thank you in advance.
Regards.
I assume that you’ve updated php and therefore it is important to install all related php modules in the right version too. Make sure the php7(.4.5)-redis package is installed on your server and that all required libraries are installed too:
ls -al /usr/lib64/php/modules/redis.so
ldd /usr/lib64/php/modules/redis.so
PHP Warning: PHP Startup: Unable to load dynamic library ‘redis.so’ (tried: /usr/lib64/php/modules/redis.so (/usr/lib64/php/modules/redis.so: undefined symbol: php_json_decode_ex), /usr/lib64/php/modules/redis.so.so (/usr/lib64/php/modules/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘redis.so’ (tried: /usr/lib64/php/modules/redis.so (/usr/lib64/php/modules/redis.so: undefined symbol: php_json_decode_ex), /usr/lib64/php/modules/redis.so.so (/usr/lib64/php/modules/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Level App Message Time
Error PHP PHP Startup: Unable to load dynamic library ‘redis.so’ (tried: 2020-05-05T10:07:01+00:00
/usr/lib64/php/modules/redis.so (/usr/lib64/php/modules/redis.so:
undefined symbol: php_json_decode_ex), /usr/lib64/php/modules/redis.so.so
(/usr/lib64/php/modules/redis.so.so: cannot open shared object file: No
such file or directory)) at Unknown#0
Thank you, but I had already seen these articles (which also refer to “older” versions of PHP… eg 7.2.x). I tried to apply the same advice but nothing has changed.
I’m still in the same situation over and over again…