• Resolved homelesshenry

    (@homelesshenry)


    Hello,

    I am having issues where Redis can’t connect. First I installed Redis on XAMPP and had this issue. Figured it might be related to XAMPP or I missed something, so I then asked my host to install it on my production site.

    Well, it’s the same issue of not being able to connect there too.

    I’ve tried adding these to wp-config.php:

    define('WP_CACHE_KEY_SALT', 'string');
    define('WP_CACHE', true);

    I also tried these in wp-config.php:

    define( 'WP_REDIS_HOST', '127.0.0.1' );
    define( 'WP_REDIS_PORT', 6379 );

    Tried rebooting VPS.

    This PHP snippet:

    <?php
    $redis = new Redis();
    $redis->connect('127.0.0.1', 6379);
    $res = $redis->ping();
    echo $res;

    Generates the following:
    Caught exception: Connection refused

    Is there some step I am missing after installing Redis on a server and activating your plugin to get it to connect/work properly?

    Do I need to change some configuration in a Redis file somewhere? I’m not familiar with sudo, but is there some way I can check it in FTP/File Manager if this is the case?

    Diagnostics:

    Status: Not connected
    Client: PhpRedis (v5.3.7)
    Drop-in: Valid
    Disabled: No
    Ping: 
    Connection Exception: Connection refused (RedisException)
    Errors: [
        "Connection refused"
    ]
    PhpRedis: 5.3.7
    Relay: Not loaded
    Predis: Not loaded
    Credis: Not loaded
    PHP Version: 7.4.29
    Plugin Version: 2.0.25
    Redis Version: Unknown
    Multisite: No
    Metrics: Disabled
    Metrics recorded: null
    Filesystem: Working
    Global Prefix: "wpse_"
    Blog Prefix: "wpse_"
    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",
        "bp_object_terms",
        "bp",
        "bp_last_activity",
        "bp_member_type",
        "bp_xprofile",
        "bp_xprofile_data",
        "bp_xprofile_fields",
        "bp_xprofile_groups",
        "xprofile_meta",
        "bp_user_mid",
        "bp_activity",
        "bp_activity_comments",
        "activity_meta",
        "bp_blog_meta",
        "bp_friends_requests",
        "bp_friends_friendships",
        "bp_friends_friendships_for_user",
        "bp_groups",
        "bp_group_admins",
        "bp_group_invite_count",
        "group_meta",
        "bp_groups_memberships",
        "bp_groups_memberships_for_user",
        "bp_messages",
        "bp_messages_threads",
        "bp_messages_unread_count",
        "message_meta",
        "bp_notifications",
        "notification_meta"
    ]
    Unflushable Groups: []
    Drop-ins: [
        "Redis Object Cache Drop-In v2.0.25 by Till Krüss"
    ]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Having Trouble Connecting’ is closed to new replies.