Title: Object Cache enabled,  Status:Not Connected ,Client:predis
Last modified: August 31, 2016

---

# Object Cache enabled, Status:Not Connected ,Client:predis

 *  Resolved [venbrooks](https://wordpress.org/support/users/venbrooks/)
 * (@venbrooks)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/object-cache-enabled-statusnot-connected-clientpredis/)
 * Support Team,
 *  I’m trying to configure Redis Object Cache plugin, for bitnami AMI on wordpress,
   to connect to Elasticcache Redis server.
 * 1) I’ve declared the variable in wp-config
    define( ‘WP_REDIS_SCHEME’, ‘tcp’ );
   define( ‘wp_REDIS_PORT’, ‘6379’ ); define( ‘WP_REDIS_CLIENT’, ‘predis’ ); define(‘
   WP_REDIS_DATABASE’, ‘0’ ); define( ‘WP_REDIS_HOST’, ‘***************.cache.amazonaws.
   com’ );
 * 2) I get on to Redis Object Cache Settings,
 * Status: Disabled
    Client: predis
 * Click on Enable Object Cache, it immediately takes me to FTP account login to
   enter the password, after entering the password, I get redirected back to the
   Redis Object Cache Settings page.
 * (Object Cache Enabled)
 * Status:Not Connected ,
    Client:predis
 * 3) Points to be noted here
    – object-cache.php is copied to the wp-content – 
   I’m able to connect to redis cache server from redis-cli command line on the 
   EC2 server – I tried giving 777 and ownership change, no luck .
 * Could you please help me providng further leads, as to why I get Not Connected
   error ?
 * [https://wordpress.org/plugins/redis-cache/](https://wordpress.org/plugins/redis-cache/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/object-cache-enabled-statusnot-connected-clientpredis/#post-7343073)
 * Make sure credentials are 100% correct.
 * If that’s the case I’d write a small test script that uses Predis with those 
   credentials and see if it connects.
 *  Thread Starter [venbrooks](https://wordpress.org/support/users/venbrooks/)
 * (@venbrooks)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/object-cache-enabled-statusnot-connected-clientpredis/#post-7343081)
 * Thank you Till Kruss for your prompt response. Credentials are correct, able 
   to upload new modules themes, via FTP with the same credentials..
    Do you have
   psuedo code or any instructions anywhere, as to how I can test the functionality?
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/object-cache-enabled-statusnot-connected-clientpredis/#post-7343084)
 * No, but Predis has some examples: [https://github.com/nrk/predis](https://github.com/nrk/predis)
 *  [zedomingues](https://wordpress.org/support/users/zedomingues/)
 * (@zedomingues)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/object-cache-enabled-statusnot-connected-clientpredis/#post-7343153)
 * Hello
 * I’m going through the same problem.
 * I have 3 sites that use the same cache service (azure).
 * two sites are installed in a hosting company, already the third is in a new different
   company.
 * that third site, the server uses php 7.
 * the first two sites are working properly, however, the third site does not connect.
   It appears the same error informed by venbrooks (Status: Not Connected).
 * I have to do some extra configuration due to php 7?
    or do you think the new 
   host is doing some kind of lock?
 * thanks for attention
 *  Thread Starter [venbrooks](https://wordpress.org/support/users/venbrooks/)
 * (@venbrooks)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/object-cache-enabled-statusnot-connected-clientpredis/#post-7343154)
 * I’m on NGINX , PHP-FPM , i h’ve figured out a way to fix this. I’m in the process
   of enabling ALL OF the logs to debug it further, will keep you posted, which 
   direction I take.
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/object-cache-enabled-statusnot-connected-clientpredis/#post-7343170)
 * [@zedomingues](https://wordpress.org/support/users/zedomingues/), the other two
   sites are running PHP 5?
 * I’d suggest to see Predis alone connects to your Redis instance:
 *     ```
       require 'PATH/TO/Predis/Autoloader.php';
   
       Predis\Autoloader::register();
   
       $client = new Predis\Client('tcp://10.0.0.1:6379');
       $client->set('foo', 'bar');
       $value = $client->get('foo');
       ```
   
 *  [zedomingues](https://wordpress.org/support/users/zedomingues/)
 * (@zedomingues)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/object-cache-enabled-statusnot-connected-clientpredis/#post-7343171)
 * yes, the other two sites are hosted in an apache server with php 4.5.45
 * I’ll try to see this predis connection.
 * also I sent a ticket to the new host company asking if the firewall was blocking
   the outbound connection.
 * thank you
 *  [zedomingues](https://wordpress.org/support/users/zedomingues/)
 * (@zedomingues)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/object-cache-enabled-statusnot-connected-clientpredis/#post-7343204)
 * [@tillkruess](https://wordpress.org/support/users/tillkruess/), I messed up, 
   the other two sites are running in php 5.4.45 (not 4.5.45).
 * I saw nothing wrong with predis connection.
 * I begin to think that the server firewall is blocking the port for tcp outbound
   connections.
 * or php 7 is not doing well.
 * tks
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/object-cache-enabled-statusnot-connected-clientpredis/#post-7343205)
 * Does the Predis test script connect to your server from that PHP7 machine?
 *  [zedomingues](https://wordpress.org/support/users/zedomingues/)
 * (@zedomingues)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/object-cache-enabled-statusnot-connected-clientpredis/#post-7343225)
 * the problem is not the predis connection, but the hosting server that blocks 
   any connection with the Microsoft Azure services (both REDIS CACHE as STORAGE).
 * I discovered that removing all the site of the new server company (with problems)
   to a server with php 7 in another company.
 * tks for your help and attention.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Object Cache enabled, Status:Not Connected ,Client:predis’ is closed 
to new replies.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [zedomingues](https://wordpress.org/support/users/zedomingues/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/object-cache-enabled-statusnot-connected-clientpredis/#post-7343225)
 * Status: resolved