Nextcloud Installation (Debian 13)
Version vom 12. März 2026, 08:21 Uhr von Thomas.will (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „ ==System vorbereiten== *apt update *apt install apache2 mariadb-server php php-gd php-curl php-zip php-mysql php-xml php-mbstring php-intl php-bcmath php-gmp…“)
System vorbereiten
- apt update
- apt install apache2 mariadb-server php php-gd php-curl php-zip php-mysql php-xml php-mbstring php-intl php-bcmath php-gmp php-imagick php-cli libapache2-mod-php unzip wget -y
Apache Module aktivieren
- a2enmod rewrite headers env dir mime
- systemctl restart apache2
Datenbank erstellen
- mysql -u root
CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'secret'; GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost'; FLUSH PRIVILEGES; EXIT;
Nextcloud herunterladen
- cd /root
- wget https://download.nextcloud.com/server/releases/latest.tar.bz2
- tar -xjf latest.tar.bz2
- mv nextcloud /var/www/
Rechte setzen
- chown -R www-data:www-data /var/www/nextcloud
- chmod -R 750 /var/www/nextcloud
Apache VirtualHost erstellen
- vi /etc/apache2/sites-available/nextcloud.conf
<VirtualHost *:80> ServerName nc.it213.int DocumentRoot /var/www/nextcloud <Directory /var/www/nextcloud/> Require all granted AllowOverride All Options FollowSymLinks MultiViews </Directory> </VirtualHost>
Website aktivieren
- a2ensite nextcloud.conf
- a2dissite 000-default.conf
- systemctl reload apache2
Nextcloud Installation im Browser starten
Nextcloud Einrichtung im Webbrowser
| Feld im Installer | Eingabe | Beschreibung |
|---|---|---|
| Administration account name | admin | Name des Administrators für Nextcloud. |
| Administration account password | 123Start$ | Passwort für den Administrator. |
| Data folder | /var/www/nextcloud/data | Verzeichnis für die gespeicherten Dateien. |
| Database user | nextcloud | Datenbankbenutzer aus der MariaDB-Konfiguration. |
| Database password | secret | Passwort des Datenbankbenutzers. |
| Database name | nextcloud | Name der zuvor erstellten Datenbank. |
| Database host | localhost | Datenbankserver läuft auf dem gleichen System. |
- Zum Abschluss auf Install klicken.
- Nextcloud richtet nun automatisch die Datenbankstruktur ein und startet anschließend das Dashboard.
Empfohlene Apps installieren
| App | Beschreibung |
|---|---|
| Calendar | Kalender zur Planung von Terminen und Besprechungen. Synchronisation mit verschiedenen Geräten möglich. |
| Contacts | Zentrale Verwaltung von Kontakten und Adressbüchern. |
| Webmail-Client zur Integration von E-Mail direkt in Nextcloud. | |
| Nextcloud Office | Bearbeiten von Dokumenten, Tabellen und Präsentationen im Browser (Collabora Online). |
| Notes | Einfache Notizen-App innerhalb von Nextcloud. |
| Talk | Chat, Audio- und Videokonferenzen direkt im Browser. |
- Alle vorgeschlagenen Apps können aktiviert bleiben.
- Anschließend auf Empfohlene Apps installieren klicken.
Cronjob einrichten
- crontab -u www-data -e
*/5 * * * * php -f /var/www/nextcloud/cron.php