• Resolved venbrooks

    (@venbrooks)


    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://ww.wp.xz.cn/plugins/redis-cache/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    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

    (@venbrooks)

    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

    (@tillkruess)

    No, but Predis has some examples: https://github.com/nrk/predis

    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

    (@venbrooks)

    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

    (@tillkruess)

    @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');

    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

    @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

    (@tillkruess)

    Does the Predis test script connect to your server from that PHP7 machine?

    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.