Preparing my system for an upgrade to v26 and getting this error when running ‘php --version’ after upgrading to PHP v8.1:
PHP Warning: PHP Startup: Unable to load dynamic library ‘redis.so’ (tried: /us r/lib/php/20210902/redis.so (/usr/lib/php/20210902/redis.so: cannot open shared object file: No such file or directory), /usr/lib/php/20210902/redis.so.so (/usr /lib/php/20210902/redis.so.so: cannot open shared object file: No such file or d irectory)) in Unknown on line 0
Do I need to reinstall php-redis specifically for 8.1? It was installed on 7.4 prior to upgrading to PHP to 8.1. How do I confirm php-redis is installed for 8.1? If it isn’t, what is the best practice method for installing it for 8.1? Thanks!!
It’s a bit hard to help you, since you skipped the support template and not even knowing what OS you’re running ;-).
So in general each module is specific to a PHP version. So if you install php7.4 and php7.4-mysql for example, you can’t use that mysql module for php8.1. And I guess the same problem is here for redis in your case. So if you installed php7.4-redis, you probably need php8.1-redis as well, because otherwise it won’t work. (Don’t confuse the redis module of PHP with the redis server itself, the module is just used from PHP code to connect to redis).