Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Thanks!

    Local inter-process communication by unix domain sockets should be faster than communication by loopback localhost connections.

    But I’d benchmark that to be sure ; )

    Thread Starter miguelkennedy

    (@miguelkennedy)

    Thanks for taking the time to answer my question!

    I have set this in redis config file

    unixsocket /var/run/redis/redis.sock
    unixsocketperm 755

    when I go to /var/run/redis/ the redis.sock file is there.

    Then I added this to wp-config.php

    define (‘WP_REDIS_SCHEME’, ‘unix’);
    define (‘WP_REDIS_PATH’, ‘/var/run/redis/redis.sock’);

    But now the plugin’s setting page says “Not connected”

    What am I doing wrong?

    Plugin Author Till Krüss

    (@tillkruess)

    I’d recommend you check your log files, or ask your web developer to have a closer look at why the connection is failing.

    Thread Starter miguelkennedy

    (@miguelkennedy)

    I am the webdeveloper and server administrator…

    I will take a closer look at the log files…

    Thread Starter miguelkennedy

    (@miguelkennedy)

    Logs didn’t show anything but I found the culprit.

    In Redis config file unixsocketperm 755 should be unixsocketperm 777 otherwise the plugin can’t connect through UNIX sock.

    Now everything is working fine ??

    Plugin Author Till Krüss

    (@tillkruess)

    Awesome, glad it’s working!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘TCP or Sockets’ is closed to new replies.