PHP Startup: Unable to load dynamic library 'redis.so'
Hi all
I recently was trying out Redis and after the experiment I uninstalled it. Or so I thought.
I've just noticed several errors being recorded at the Account (website) level, in the error_log file.
I've checked for references to Redis in the PHP.ini (WHM >> MultiPHP INI Editor) but cannot see anything specific to Redis. I've missed a step somewhere. Any suggestions?
PHP Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /opt/cpanel/ea-php74/root/usr/lib64/php/modules/redis.so (/opt/cpanel/ea-php74/root/usr/lib64/php/modules/redis.so: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php74/root/usr/lib64/php/modules/redis.so.so (/opt/cpanel/ea-php74/root/usr/lib64/php/modules/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0I've checked for references to Redis in the PHP.ini (WHM >> MultiPHP INI Editor) but cannot see anything specific to Redis. I've missed a step somewhere. Any suggestions?
-
Hey there! Can you try running the following command to see if that shows you an entry for Redis directly in the configuration? grep -R redis /opt/cpanel/ea-php74/root/etc/php.ini
If not, you may want to try a more general search of those areas with something like this:grep -Ri redis /opt/cpanel/ea-php*/root/etc/php.ini0 -
Thanks, PRex I eventually found the culprit. It was in /opt/cpanel/ea-php74/root/etc/php.d/redis.ini
line: extension=redis.so. For now, I've commented the line out. Hopefully, that will stop the errors. What would be the safe way to uninstall Redis and the EasyApache4 PHP extension? Assuming I don't just remove the redis.ini...Hey there! Can you try running the following command to see if that shows you an entry for Redis directly in the configuration?
grep -R redis /opt/cpanel/ea-php74/root/etc/php.ini
If not, you may want to try a more general search of those areas with something like this:grep -Ri redis /opt/cpanel/ea-php*/root/etc/php.ini
0 -
Thanks, will do. 0
Please sign in to leave a comment.
Comments
4 comments