From 2cbc7f3e515dd70da83ec5de4af4fcf1ba5996c0 Mon Sep 17 00:00:00 2001 From: Jos Poortvliet Date: Thu, 18 Jul 2019 20:46:06 +0200 Subject: [PATCH 1/2] note on the redis socket file permissions This can take forever to debug ;-) --- .../configuration_server/caching_configuration.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/admin_manual/configuration_server/caching_configuration.rst b/admin_manual/configuration_server/caching_configuration.rst index f19c85015..fdc90e07d 100644 --- a/admin_manual/configuration_server/caching_configuration.rst +++ b/admin_manual/configuration_server/caching_configuration.rst @@ -161,6 +161,13 @@ recommended if Redis is running on the same system as Nextcloud) use this exampl Only "host" and "port" variables are required, the other ones are optional. +Be sure to set the right permissions on redis.sock so that your webserver can +read and write to it. This might require settingt them to `777` in the Redis +configuration file, typically ``/etc/redis/default.config```:: + + unixsocket /var/run/redis/redis.sock + unixsocketperm 777 + Redis is very configurable; consult `the Redis documentation `_ to learn more. From 98aa6e77e92a1df574160b2955a855acf0014075 Mon Sep 17 00:00:00 2001 From: Jos Poortvliet Date: Fri, 19 Jul 2019 14:52:51 +0200 Subject: [PATCH 2/2] Update caching_configuration.rst implement feedback. --- .../configuration_server/caching_configuration.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/admin_manual/configuration_server/caching_configuration.rst b/admin_manual/configuration_server/caching_configuration.rst index fdc90e07d..00f028193 100644 --- a/admin_manual/configuration_server/caching_configuration.rst +++ b/admin_manual/configuration_server/caching_configuration.rst @@ -162,11 +162,14 @@ recommended if Redis is running on the same system as Nextcloud) use this exampl Only "host" and "port" variables are required, the other ones are optional. Be sure to set the right permissions on redis.sock so that your webserver can -read and write to it. This might require settingt them to `777` in the Redis -configuration file, typically ``/etc/redis/default.config```:: +read and write to it. For this you typically have to add the webserver user +to the redis group:: - unixsocket /var/run/redis/redis.sock - unixsocketperm 777 + usermod -a -G redis www-data + +You might need to restart apache for the changes to take effect:: + + systemctl restart apache2 Redis is very configurable; consult `the Redis documentation `_ to learn more.