Title: Cannot AUTH
Last modified: August 31, 2016

---

# Cannot AUTH

 *  Resolved [swiftc](https://wordpress.org/support/users/swiftc/)
 * (@swiftc)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cannot-auth/)
 * Hello,
 * When redis is set to:
 * requirepass somepass
 * WordPress can no longer connect to it, Even with wp-config.php:
 * define(‘WP_REDIS_PASSWORD’, ‘somepass’);
 * Could you offer any guidance here please?
 * Thanks.
 * [https://wordpress.org/plugins/redis-cache/](https://wordpress.org/plugins/redis-cache/)

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

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cannot-auth/#post-7113224)
 * Hey! Did you try verifying your connection settings by connecting through the`
   redis-cli`?
 *  Thread Starter [swiftc](https://wordpress.org/support/users/swiftc/)
 * (@swiftc)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cannot-auth/#post-7113334)
 * 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!
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cannot-auth/#post-7113336)
 * Hey!
 * I can’t reproduce your issue when using a password and the PECL Redis extension.
 * However there might be a bug in PHPRedis: [https://github.com/phpredis/phpredis/issues/661](https://github.com/phpredis/phpredis/issues/661)
 * I’d recommend you ask your web developer to debug the `WP_Object_Cache::__construct()`
   in `/wp-content/object-cache.php` and if you find a bug, you can submit a PR 
   to the GitHub repository: [https://github.com/tillkruss/Redis-Object-Cache](https://github.com/tillkruss/Redis-Object-Cache)
 *  Thread Starter [swiftc](https://wordpress.org/support/users/swiftc/)
 * (@swiftc)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cannot-auth/#post-7113367)
 * 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.
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cannot-auth/#post-7113369)
 * Did you try adding the Redis constants above the following line in your `wp-config.
   php`?
 *     ```
       require_once ABSPATH . 'wp-settings.php';
       ```
   
 *  Thread Starter [swiftc](https://wordpress.org/support/users/swiftc/)
 * (@swiftc)
 * [10 years ago](https://wordpress.org/support/topic/cannot-auth/#post-7113479)
 * Thanks Trill that was the issue! :O)

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

The topic ‘Cannot AUTH’ 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/)

## Tags

 * [auth](https://wordpress.org/support/topic-tag/auth/)
 * [cannot](https://wordpress.org/support/topic-tag/cannot/)
 * [redis](https://wordpress.org/support/topic-tag/redis/)

 * 6 replies
 * 2 participants
 * Last reply from: [swiftc](https://wordpress.org/support/users/swiftc/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/cannot-auth/#post-7113479)
 * Status: resolved