• Resolved Chris

    (@osiak)


    Hi,
    I have my WP install on one server (files) and my database on another server. Cannot make the plugin to connect. I’ve added to my wp-config.php:

    define( 'WP_REDIS_HOST', '104.207.130.130' );
    define( 'WP_REDIS_PORT', 6379 );
    define( 'WP_REDIS_TIMEOUT', 1 );
    define( 'WP_REDIS_READ_TIMEOUT', 1 );
    define( 'WP_REDIS_DATABASE', 0 );

    but still status: Not connected.
    Do I need to do something else for this to work?

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

    (@tillkruess)

    Hi!

    I’d try connecting like this first:

    <?php
    
    $redis = new Redis;
    $redis->connect('104.207.130.130', 6379, 3.0, null, 300, 3.5);
    
    var_dump($redis->ping());
    
    Thread Starter Chris

    (@osiak)

    Hi @tillkruess,
    thanks for the feedback. I’ve inserted your code at the end of my wp-config.php file and got an error: “Fatal error: uncaught exception: connection timed out”.
    Is there any special way I need to add this in my wp-config file?

    Plugin Author Till Krüss

    (@tillkruess)

    No, given your responses I’d recommend hiring a developer to assist you with your Redis Server setup and connection.

    My guess is either Redis Server isn’t running at all, or not accessible from your web server(s).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to set up redis to work remotely’ is closed to new replies.