Zurück zu Raspberry Pi
Nextcloud auf dem Pi
Eigene Cloud-Lösung — Dateien, Kalender, Kontakte selbst hosten mit HTTPS und Redis-Cache.
Voraussetzungen
- Raspberry Pi 4/5 mit mindestens 4 GB RAM
- Externe SSD (SD-Karte zu langsam für Datenbank)
- Domain mit DynDNS (für HTTPS)
Stack installieren
sudo apt install apache2 mariadb-server php php-gd php-mysql \
php-curl php-mbstring php-intl php-gmp php-bcmath php-xml \
php-imagick php-zip php-apcu php-redis redis-server -y
Datenbank einrichten
sudo mysql -u root
CREATE DATABASE nextcloud;
CREATE USER 'ncuser'@'localhost' IDENTIFIED BY 'HIER_EIGENES_SICHERES_PASSWORT';
GRANT ALL ON nextcloud.* TO 'ncuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Nextcloud herunterladen
cd /var/www/
sudo wget https://download.nextcloud.com/server/releases/latest.tar.bz2
sudo tar -xjf latest.tar.bz2
sudo chown -R www-data:www-data nextcloud/
HTTPS mit Let's Encrypt
sudo apt install certbot python3-certbot-apache -y
sudo certbot --apache -d deine-domain.de
Redis-Cache aktivieren (config.php)
'memcache.local' => '\OC\Memcache\APCu',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => [
'host' => 'localhost',
'port' => 6379,
],
Nextcloud auf dem Pi ist langsamer als kommerzielle Cloud-Dienste, aber deine Daten bleiben bei dir. Für 1–5 Nutzer völlig ausreichend.