• Resolved abkrim

    (@abkrim)


    Hello.

    I have a problem with user in Directadmin + PHP-FPM + Redis via socket

    The problem is that despite having configured the Redis client and having it activated, it doesn’t work for me at the W3 Total Cache level.

    The moment I activate it, get errors such below

    [Fri Jan 31 12:23:59.897677 2025] [proxy_fcgi:error] [pid 13849:tid 14305] [client 72.14.201.246:0] AH01071: Got error 'PHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refused', referer: https://www.google.com/

    In wp-admin.php

    define( 'WP_REDIS_SCHEME', 'unix' );
    define( 'WP_REDIS_PATH', '/home/USER/.redis/redis.sock' );
    define( 'WP_CACHE_KEY_SALT', 'domain.tld');
    define( 'WP_REDIS_DATABASE', '0');

    This configuration work fine if activate Redis Object Cache. Conect with socket, and works.

    I have tried to search for solutions for w3 but I don’t see anything.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @abkrim

    Thank you for reaching out and I am happy to help!

    W3 Total Cache supports Redis Unix socket. All you need to replace the default hostname with a Redis Unix socket (usually?/var/run/redis/redis.sock?or?/var/run/redis/redis.sock:0) as shown in the example below:

    I hope this helps!

    Thanks!

    Thread Starter abkrim

    (@abkrim)

    Hi.

    You reply has not “Example below”
    (Here is blank)
    > I hope this help!
    Also I put in mi pots path of unix socket for user /home/USER/.redis/redis.sock where USER is name of my user with instance of Redis and I wrote: This configuration work fine if activate Redis Object Cache. Conect with socket, and works.

    Best regards

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @abkrim

    Thank you for your feedback.
    I’ve attached the image after the Example below

    Can you see the image in this link: https://i.imgur.com/IwYK5tT.png

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.