Nextcloud: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 73: | Zeile 73: | ||
|- | |- | ||
| Administration account password | | Administration account password | ||
| − | | | + | | 123Start$ |
| Passwort für den Administrator. | | Passwort für den Administrator. | ||
|- | |- | ||
Version vom 12. März 2026, 08:08 Uhr
Nextcloud Installation (Debian 13)
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.
Cronjob einrichten
- crontab -u www-data -e
*/5 * * * * php -f /var/www/nextcloud/cron.php