From e5b74d1861412f95963a048cf4ebd9132b22ab1d Mon Sep 17 00:00:00 2001 From: exu Date: Wed, 10 Jan 2024 20:15:54 +0100 Subject: [PATCH] Enable Redis Unix socket. Add ffmpeg --- pages/02.linux/nextcloud/default.en.md | 27 +++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/pages/02.linux/nextcloud/default.en.md b/pages/02.linux/nextcloud/default.en.md index ecd1513..5dd7a75 100644 --- a/pages/02.linux/nextcloud/default.en.md +++ b/pages/02.linux/nextcloud/default.en.md @@ -135,9 +135,9 @@ apt install php-apcu 'memcache.local' => '\OC\Memcache\APCu', ``` -Enable APCu for the PHP CLI as well. +Enable APCu for the PHP CLI as well. -`/etc/php/8.2/cli/php.ini` +`/etc/php/8.2/cli/php.ini` ``` ... @@ -156,18 +156,33 @@ apt install redis php-redis If Redis is installed on the same machine, unix sockets can be used to communicate. +Enable `unixsocket` in the redis config file located under `/etc/redis/redis.conf` +Uncomment the provided default value +Set `unixsocketperm` to `777`, so the `www-data` webserver user can access it. +_NOTE: There's probably a better way of doing this involving groups, but I wanted to get it working_ + Add these lines to `config.php` ```php 'filelocking.enabled' => true, 'memcache.locking' => '\OC\Memcache\Redis', 'redis' => array( - 'host' => '/var/run/redis/redis.sock', + 'host' => '/run/redis/redis-server.sock', 'port' => 0, 'timeout' => 0.0, ), ``` +Restart the Redis and Apache2 services +[shroot] + +```sh +systemctl restart apache2 +systemctl restart redis +``` + +[/shroot] + ### Cron To execute regular jobs, I personally use cron. @@ -310,6 +325,12 @@ mariadb -h [SERVER] -u [USERNAME] -p[PASSWORD] [DB NAME] < nextcloud-sqlbkp.bak > [Nextcloud documentation](https://docs.nextcloud.com/server/latest/admin_manual/maintenance/restore.html) +### Plugins + +#### Memories + +Install `ffmpeg` to enable thumbnail generation for video files. + ## Migration ### Tips