Unable to connect Redis Droplet with Wordpress

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_HOST: "private-db-redis-ams3-###"
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

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


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:

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

Hope that this helps! Regards, Bobby