Connection error Predis\Connection | WordPress.org

[ad_1]

Hey! I have working redis on some of my servers, which runDebian+Nginx + php7.4!

Now, i ahve another fresh server, that runs CentOS+Nginx+php8.1!

And when i try to install Redis Object Cache, via >

wp plugin install redis-cache --activate and wp redis enable, my site goes down, and i have this error in nginx logs:

2023/11/16 13:50:38 [error] 42567#42567: *1139 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function Predis\Connection\stream_socket_client() in /var/www/example/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php:108
Stack trace:
#0 /var/www/example/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php(184): Predis\Connection\StreamConnection->createStreamSocket()
#1 /var/www/example/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php(83): Predis\Connection\StreamConnection->unixStreamInitializer()
#2 /var/www/example/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php(80): Predis\Connection\StreamConnection->createResource()
#3 /var/www/example/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php(230): Predis\Connection\AbstractConnection->connect()

Can you help me with this? Thx in advance!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer