Title: Problem with connection
Last modified: November 5, 2022

---

# Problem with connection

 *  Resolved [cometto](https://wordpress.org/support/users/cometto/)
 * (@cometto)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problem-with-connection-4/)
 * Hello
 * i have a problem with turning on redis.
    See sceen: [https://ibb.co/ZGc57Cz](https://ibb.co/ZGc57Cz)
 * I think there may be user required.
    My hosting gives me some parameters: – port–
   host – user – mem limit 128 mb – connections limit 10000 – password.
 * what should i improve in wp-config.php?
    thanks in advance
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-connection-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problem-with-connection-4/#post-16169205)
 * `That's all, stop editing! Happy blogging.`
 * You need the read. Move the constants up.
 *  Thread Starter [cometto](https://wordpress.org/support/users/cometto/)
 * (@cometto)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problem-with-connection-4/#post-16169324)
 * [@tillkruess](https://wordpress.org/support/users/tillkruess/)
 * I did it as you wrot but there is still something wrong with configuration.
 *     ```
       Status: Not connected
       Client: 
       Drop-in: Valid
       Disabled: No
       Ping: 
       Connection Exception: Connection refused [tcp://127.0.0.1:6379] (Predis\Connection\ConnectionException)
       Errors: [
           "Connection refused [tcp:\/\/127.0.0.1:6379]"
       ]
       PhpRedis: Not loaded
       Relay: Not loaded
       Predis: 2.0.3
       Credis: Not loaded
       PHP Version: 8.1.11
       Plugin Version: 2.2.2
       Redis Version: Unknown
       Multisite: No
       Metrics: Disabled
       Metrics recorded: 0
       Filesystem: Working
       Global Prefix: "wp_"
       Blog Prefix: "wp_"
       Global Groups: [
           "blog-details",
           "blog-id-cache",
           "blog-lookup",
           "global-posts",
           "networks",
           "rss",
           "sites",
           "site-details",
           "site-lookup",
           "site-options",
           "site-transient",
           "users",
           "useremail",
           "userlogins",
           "usermeta",
           "user_meta",
           "userslugs",
           "redis-cache"
       ]
       Ignored Groups: [
           "counts",
           "plugins",
           "themes",
           "blog-details",
           "blog-id-cache",
           "blog-lookup",
           "global-posts",
           "networks",
           "rss",
           "sites",
           "site-details",
           "site-lookup",
           "site-options",
           "site-transient",
           "users",
           "useremail",
           "userlogins",
           "usermeta",
           "user_meta",
           "userslugs",
           "redis-cache",
           "blog_meta"
       ]
       Unflushable Groups: []
       Groups Types: {
           "blog-details": "ignored",
           "blog-id-cache": "ignored",
           "blog-lookup": "ignored",
           "global-posts": "ignored",
           "networks": "ignored",
           "rss": "ignored",
           "sites": "ignored",
           "site-details": "ignored",
           "site-lookup": "ignored",
           "site-options": "ignored",
           "site-transient": "ignored",
           "users": "ignored",
           "useremail": "ignored",
           "userlogins": "ignored",
           "usermeta": "ignored",
           "user_meta": "ignored",
           "userslugs": "ignored",
           "redis-cache": "ignored",
           "counts": "ignored",
           "plugins": "ignored",
           "themes": "ignored",
           "blog_meta": "ignored"
       }
       Drop-ins: [
           "advanced-cache.php v by ",
           "maintenance.php v by ",
           "Redis Object Cache Drop-In v2.2.2 by Till Krüss"
       ]
       ```
   
 *  Thread Starter [cometto](https://wordpress.org/support/users/cometto/)
 * (@cometto)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problem-with-connection-4/#post-16169325)
 * [@tillkruess](https://wordpress.org/support/users/tillkruess/)
 * I put:
 *     ```
       define( 'WP_REDIS_HOST', 'my host' );
       define( 'WP_REDIS_PORT', my port);
       define( 'WP_REDIS_PASSWORD', 'my pass' );
       define( 'WP_REDIS_TIMEOUT', 1 );
       define( 'WP_REDIS_READ_TIMEOUT', 1 );
       // change the database for each site to avoid cache collisions
       define( 'WP_REDIS_DATABASE', 0 );
       // supported clients: <code>phpredis</code>, <code>credis</code>, <code>predis</code> and <code>hhvm</code>
       // define( 'WP_REDIS_CLIENT', 'phpredis' );
       // automatically delete cache keys after 7 days
       // define( 'WP_REDIS_MAXTTL', 60 * 60 * 24 * 7 );
       // bypass the object cache, useful for debugging
       // define( 'WP_REDIS_DISABLED', true );
       ```
   
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problem-with-connection-4/#post-16169333)
 * Verify that you can connect via `redis-cli`.

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

The topic ‘Problem with connection’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/problem-with-connection-4/#post-16169333)
 * Status: resolved