• Resolved catuyen

    (@catuyen)


    Hello

    I am trying to let Redis work as a Unix socket by following this tutorial https://guides.wp-bullet.com/how-to-configure-redis-to-use-unix-socket-speed-boost/

    Everything is working fine except the plugin does not display the Unix socket connection. Here is the screenshot https://prnt.sc/BP5gxCXfgmB_

    Below are the Diagnostics info

    Status: Connected
    Client: Predis (v1.1.9)
    Drop-in: Valid
    Disabled: No
    Ping: PONG
    Errors: []
    PhpRedis: Not loaded
    Relay: Not loaded
    Predis: 1.1.9
    Credis: Not loaded
    PHP Version: 8.0.17
    Plugin Version: 2.0.23
    Redis Version: 6.0.16
    Multisite: No
    Metrics: Enabled
    Metrics recorded: 24
    Filesystem: Working
    Global Prefix: "wp_"
    Blog Prefix: "wp_"
    WP_REDIS_SCHEME: "unix"
    WP_REDIS_PATH: "/var/run/redis/redis-server.sock"
    WP_REDIS_PREFIX: "lowenddirectory.com"
    WP_CACHE_KEY_SALT: "lowenddirectory.com"
    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",
        "blog_meta"
    ]
    Ignored Groups: [
        "counts",
        "plugins",
        "themes"
    ]
    Unflushable Groups: []
    Drop-ins: [
        "Redis Object Cache Drop-In v2.0.23 by Till Krüss"
    ]

    root@scp:/var/run/redis# ls -lh /var/run/redis
    total 4.0K
    -rw-rw—- 1 redis redisuser 7 Mar 21 15:24 redis-server.pid
    srwxrwxr-x 1 redis redisuser 0 Mar 21 15:24 redis-server.sock

    I even change the port from 6379 to 0 and restart redis-server but the plugin still shows port 6379 at 1st screenshort.

    Please help.

    Thank you
    TOM

Viewing 1 replies (of 1 total)
  • Thread Starter catuyen

    (@catuyen)

    I found the reason, php-redis extension is not installed.

    sudo apt install php8.0-redis

    Will do the job.

    Cheers,

Viewing 1 replies (of 1 total)
  • The topic ‘Redis did not switch from TCP to Socket’ is closed to new replies.