fachinformatiker-wiki

it's easy when it's here

User Tools

Site Tools


misc:nextcloud:update

Nexcloud

Installation

Redis

Es folgt eine Beispiel Installation von einem Redis-Server auf dem Betriebsystem Linux Debian.

Installation

Zuerst werden die entsprechenden Pakete installiert

apt install php-apcu -y
apt install redis-server -y
apt install php-redis -y
 
usermod -a -G redis www-data

Anschließend können wir Redis konfigurieren

/etc/redis/redis.conf
unixsocket /var/run/redis/redis.sock
unixsocketperm 770

Nextcloud Anpassung

config.php
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => 'true',
'redis' => 
array (
'host' => 'localhost',
'port' => 6379,
'timeout' => 0.0,
),

Update

CLI

sudo -u www-data /usr/bin/php /var/www/nextcloud/occ maintenance:mode --on
sudo -u www-data /usr/bin/php /var/www/nextcloud/updater/updater.phar
sudo -u www-data /usr/bin/php --define apc.enable_cli=1 /var/www/nextcloud/updater/updater.phar
sudo -u www-data /usr/bin/php /var/www/nextcloud/updater/updater.phar --no-interaction
sudo -u www-data /usr/bin/php --define apc.enable_cli=1 /var/www/nextcloud/updater/updater.phar --no-interaction
sudo -u www-data /usr/bin/php /var/www/nextcloud/occ config:system:set maintenance_window_start --type=integer --value=1
sudo -u www-data /usr/bin/php /var/www/nextcloud/occ db:add-missing-indices

2FA

Reset

sudo -u www-data /usr/bin/php /var/www/nextcloud/occ user:list | grep testuser
  - 123ABCDE-12AB-34CD-5ASD-C1C64124BC25: Testuser (testuser)
sudo -u www-data /usr/bin/php /var/www/nextcloud/occ twofactorauth:disable 123ABCDE-12AB-34CD-5ASD-C1C64124BC25 totp
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.  More information about cookies 
misc/nextcloud/update.txt · Last modified: 2025/01/17 11:35 by gsys