• Resolved diegpl

    (@diegpl)


    Hi, I instaleld phpredis on the server and tested it on the modules with php -m, it is showing there. Then, I set define(‘WP_REDIS_CLIENT’, ‘pecl’); on wp-config.php. But the plugin is still recognizing Predis (v1.1.1) as the client. What else should I do to get phpredis working on the plugin? Thank you very much!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter diegpl

    (@diegpl)

    If I disable the object cache, plugin shows client as pecl, but when I activate it, Predis come back as client. PHP Extension still shows as “not found” even with “php -m” showing it is there.

    Probably need to me the constant up in your config.

    Thread Starter diegpl

    (@diegpl)

    I just set it as uppercase and inserted it above all the others:
    define(‘WP_REDIS_CLIENT’, ‘PECL’);
    define(‘WP_REDIS_HOST’, ‘xxx’);
    define(‘WP_REDIS_PORT’, ‘xxx’);
    define(‘WP_REDIS_PASSWORD’, ‘xxx’);
    define(‘WP_REDIS_MAXTTL’, ‘86400’);

    But it still does not work. Any other idea? Or did not I understand you alright? Tks!

    I’d suggest to hire a developer to help you with your setup. I can’t assist you with this.

    Thread Starter diegpl

    (@diegpl)

    But is there a way I can know if the problem is not with the plugin? Because this code is running alright at phpredis folder:
    $redis = new Redis();
    $redis->connect(‘127.0.0.1’, 6379);
    echo “Connection to server sucessfully”;
    //check whether server is running or not
    echo “Server is running: “.$redis->ping();
    if ( class_exists( ‘Redis’ ) ) {

    echo “versao “.phpversion( ‘redis’ );
    //echo $redis->get_redis_client_name();
    } else {
    echo “sem classe redis”;
    }

    • This reply was modified 5 years, 1 month ago by diegpl.

    Email me your WP-config file.

    Thread Starter diegpl

    (@diegpl)

    The problem is solved. I was not installing it referencing the php version. That is the right code: php72-php-pecl-redis5

    Closing this thread now. Thank you very much! ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WP_REDIS_CLIENT on wp-config is not working?’ is closed to new replies.