Enable Redis Unix socket. Add ffmpeg

This commit is contained in:
exu 2024-01-10 20:15:54 +01:00
parent 7a71c3f651
commit e5b74d1861

View File

@ -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