Managed Redis Database and WordPress

September 11, 2019 89 views

I’ve setup a Redis cluster trough DigitalOcean Managed Databases. It’s up and running. I have a WordPress website which I’d like to connect to the cluster.

I’ve installed “Redis Object Cache” ( )

I’ve setup the following defines in my wp-config.php:

define( 'WP_REDIS_HOST', 'my-private-do-hostname');
define( 'WP_REDIS_PORT', '25061');
define( 'WP_REDIS_PASSWORD', 'my-password');
define( 'WP_REDIS_SCHEME', 'tls');

I’ve added my droplet to be a allowed on the private network. But the plugin keeps saying:

Status: Not Connected
Client: PhpRedis (v3.0.0)

So it stays unconnected.

Anyone got this up and running using WordPress?

1 Answer

Hi @NielsV,

Make sure you can actually connect for the droplet to the Redis cluster. I’ll assume it’s not the Wordpress fault as more to the connection between the two servers.

I’ll recommend you to try and open the REDIS port on both servers,both IN and OUT connections, add rules to IPTABLES to allow traffic from the droplets.

You can try to connect with telnet and the specific port, another option would be traceroute to the Redis’s server IP address.

Kind regards,

Have another answer? Share your knowledge.