wp-config parameter for unix socket connection?
-
Hello,
Connection via TCP Port is working, trying to get unix socket connection.
Connected via TCP Port to Redis successful
wp-config.php
define( ‘WP_CACHE’, true );
define( ‘WP_REDIS_HOST’, ‘127.0.0.1’ );
define( ‘WP_REDIS_PASSWORD’, ‘xxxxxxxxxxx!’ );
define( ‘WP_CACHE_KEY_SALT’, ‘domain.com’);
define( ‘WP_REDIS_DATABASE’, 4 );Status: Connected
Client: PhpRedis (v5.3.2)
Drop-in: Valid
Disabled: No
Filesystem: Working
Ping: 1
Errors: []
PhpRedis: 5.3.2
Predis: Not loaded
Credis: Not loaded
PHP Version: 7.4.13
Plugin Version: 2.0.15
Redis Version: 6.0.9
Multisite: No
Global Prefix: “zo978787887v_”
Blog Prefix: “zo978787887v_”
WP_REDIS_HOST: “127.0.0.1”
WP_REDIS_PORT: 6379
WP_REDIS_DATABASE: 4
WP_REDIS_PREFIX: “domain.com”
WP_CACHE_KEY_SALT: “domain.com”
WP_REDIS_PASSWORD: ••••••••Change Redis to Unix Socket
# unixsocket /var/run/redis/redis.sock
# unixsocketperm 77017960:M 14 Dec 2020 14:36:25.895 * Ready to accept connections
17960:M 14 Dec 2020 14:36:25.895 * The server is now ready to accept connections at /var/run/redis/redis.sockTried with the following wp-config settings:
define(‘WP_CACHE’, true);
define(‘WP_REDIS_SCHEME’, ‘unix’);
define(‘WP_REDIS_PATH’, ‘/var/run/redis/redis.sock’);Are the 3 parameters for the unix socket connection sufficient, or are there some additional parameters missing?
Thx
Sally
- The topic ‘wp-config parameter for unix socket connection?’ is closed to new replies.