Hello guys,
I created an instance with apache, php and mysql where I installed wordpress.

I created a redis instance but cannot get wordpress connected.

Status: Not Connected
Redis Version: Unknown
Client: Predis
Drop-in: Valid
Connection Exception: Connection timed out [tls://private-db-redis-ams3-***:***] (Predis\Connection\ConnectionException)
Redis Extension: Not Found
Predis Client: 1.1.1
PHP Version: 7.4.2
Multisite: No
Global Prefix: "wp_"
Blog Prefix: "wp_"
WP_REDIS_SCHEME: "tls"
WP_REDIS_HOST: "private-db-redis-ams3-###"
WP_REDIS_PORT: "####"
WP_REDIS_PASSWORD: "****************"

i tied to connect with tcp and tls

with command:
redis-cli -h db-redis-ams3-**** -p **** -a ***
connects correctly

but with wordpress doesn’t work

thanks for support

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

I think that you need to install the PHP Redis Module in order for PHP to be able to communicate with Redis.

You could do that by running the following commands:

  • First, update your package manager cache by running:
sudo apt update
  • Then install the php-redis package:
apt install php-redis 
  • After that you should be able to see an .ini file for the php-redis module available at:
/etc/php/7.x/mods-available/redis.ini 

You might have to restart Apache in order for the new module to be picked up.

Hope that this helps!
Regards,
Bobby

Submit an Answer