I’m having trouble with setting up Redis. I wanted to get rid of the message telling me to optimize memcache so i began following the instructions here: Memory caching — Nextcloud latest Administration Manual latest documentation
My server info is this:
Nextcloud version: 24.0.12
Operating system and version : “Ubuntu 22.04”
Apache: Apache/2.4.52`
PHP version: 7.4
I edited the /nextcloud/config/config.php file and added according to the doc above:
'memcache.locking' => '\OC\Memcache\Redis',
'memcache.local' => '\OC\Memcache\APCu',
'memcache.distributed' => '\OC\Memcache\Redis',
'redis' => [
'host' => '/run/redis/redis-server.sock',
'port' => 0,
'dbindex' => 0,
'password' => 'secret',
'timeout' => 1.5,
]
);
I also edited the /etc/redis/redis.config file by removing the comments from these lines:
unixsocket /var/run/redis/redis-server.sock
unixsocketperm 770
I also changed permissions by running this command according to the doc:
usermod -a -G redis www-data
I’ve restarted redis, apache2, and php7.4-fpm
But now i get a “Internal Server Error”
Running the systemctl status redis, i get this:
redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-05-22 02:48:41 UTC; 7min ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Main PID: 401534 (redis-server)
Status: "Ready to accept connections"
Tasks: 5 (limit: 4456)
Memory: 2.5M
CPU: 452ms
CGroup: /system.slice/redis-server.service
└─401534 "/usr/bin/redis-server 127.0.0.1:6379" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ">
Does anyone know what I’m doing wrong?
Thanks!