Forum Replies Created

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

    (@swiftc)

    Thanks, actually had to disable requirepass as the PHP sessions cannot seem to use it. Maybe works in new Redis but not via old one in YUM. Have a good day!

    Thread Starter swiftc

    (@swiftc)

    Thanks Trill that was the issue! :O)

    Thread Starter swiftc

    (@swiftc)

    I hope this will help someone else.

    I resolved this by moving the below lines from “wp-config.php” to “object-cache.php”

    ===
    define(‘WP_REDIS_HOST’, ‘127.0.0.1’);
    define(‘WP_REDIS_PORT’, ‘6379’);
    define(‘WP_REDIS_DATABASE’, ‘1’);
    define(‘WP_REDIS_PASSWORD’, ‘mypass’);
    define(‘WP_CACHE_KEY_SALT’, ‘example.com’);
    ===

    Thanks.

    PECL has to match Redis version?

    ===
    root@public01 [~]# rpm -qa | grep redis
    redis-3.2-0.4.rc3.el6.remi.x86_64
    ===
    ===
    root@public01 [~]# pecl install redis
    pecl/redis is already installed and is the same as the released version 2.2.7
    ===

    Hmm, I have now got same issue.

    ===
    Redis Status Not installed
    Configuration
    Protocol: TCP
    Host: 127.0.0.1
    Port: 6379
    Database: 1
    Password: ****************
    Key Prefix: example.com
    ===

    ===
    root@public01 [~]# pecl install redis
    pecl/redis is already installed and is the same as the released version 2.2.7
    ===

    ===
    root@public01 [~]# php -m | grep redis
    redis
    ===

    Forum: Plugins
    In reply to: [WP Redis] Cannot AUTH
    Thread Starter swiftc

    (@swiftc)

    I do have other things like PHP Sessions being cached in another db also using AUTH OK via php.ini:

    ===
    session.save_handler = redis
    session.save_path = “tcp://127.0.0.1:6379?database=10&auth=mypass”
    ===

    That all works OK. But for WordPress via plugin I see this in Apache error_log:

    ===
    [01-Mar-2016 21:13:51 UTC] PHP Fatal error: Uncaught exception ‘RedisException’ with message ‘Failed to AUTH connection’ in /home/example/public_html/wp-content/plugins/wp-redis/object-cache.php:939
    Stack trace:
    #0 [internal function]: Redis->flushAll()
    #1 /home/example/public_html/wp-content/plugins/wp-redis/object-cache.php(939): call_user_func_array(Array, Array)
    #2 /home/example/public_html/wp-content/plugins/wp-redis/object-cache.php(1047): WP_Object_Cache->_call_redis(‘flushAll’)
    #3 /home/example/public_html/wp-content/plugins/wp-redis/object-cache.php(155): WP_Object_Cache->__construct()
    #4 /home/example/public_html/wp-includes/load.php(473): wp_cache_init()
    #5 /home/example/public_html/wp-settings.php(95): wp_start_object_cache()
    #6 /home/example/public_html/wp-config.php(84): require_once(‘/home/example…’)
    #7 /home/example/public_html/wp-load.php(37): require_once(‘/home/example…’)
    #8 /home/example/public_html/wp-blog-header.php(12): require_once(‘/home/example…’)
    #9 /home/example/public_html in /home/example/public_html/wp-content/plugins/wp-redis/object-cache.php on line 939
    ===

    Thanks for any help!

    Thread Starter swiftc

    (@swiftc)

    Sorry for delay, Yes I have other things like PHP Sessions being cached in another db also using AUTH OK via php.ini:

    ===
    session.save_handler = redis
    session.save_path = “tcp://127.0.0.1:6379?database=10&auth=mypass”
    ===

    That all works OK. But for WordPress via plugin I see this in Apache error_log:

    ===
    [01-Mar-2016 21:13:51 UTC] PHP Fatal error: Uncaught exception ‘RedisException’ with message ‘Failed to AUTH connection’ in /home/example/public_html/wp-content/plugins/wp-redis/object-cache.php:939
    Stack trace:
    #0 [internal function]: Redis->flushAll()
    #1 /home/example/public_html/wp-content/plugins/wp-redis/object-cache.php(939): call_user_func_array(Array, Array)
    #2 /home/example/public_html/wp-content/plugins/wp-redis/object-cache.php(1047): WP_Object_Cache->_call_redis(‘flushAll’)
    #3 /home/example/public_html/wp-content/plugins/wp-redis/object-cache.php(155): WP_Object_Cache->__construct()
    #4 /home/example/public_html/wp-includes/load.php(473): wp_cache_init()
    #5 /home/example/public_html/wp-settings.php(95): wp_start_object_cache()
    #6 /home/example/public_html/wp-config.php(84): require_once(‘/home/example…’)
    #7 /home/example/public_html/wp-load.php(37): require_once(‘/home/example…’)
    #8 /home/example/public_html/wp-blog-header.php(12): require_once(‘/home/example…’)
    #9 /home/example/public_html in /home/example/public_html/wp-content/plugins/wp-redis/object-cache.php on line 939
    ===

    Thanks for any help!

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