Nextcloud: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
=Nextcloud Installation (Debian 13)=
+
*[[Nextcloud Installation (Debian 13)]]
 
+
*[[Nextcloud Installation (Rocky 9)]]
==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
 
 
 
<pre>
 
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;
 
</pre>
 
 
 
==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
 
 
 
<pre>
 
<VirtualHost *:80>
 
 
 
ServerName nc.it213.int
 
DocumentRoot /var/www/nextcloud
 
 
 
<Directory /var/www/nextcloud/>
 
Require all granted
 
AllowOverride All
 
Options FollowSymLinks MultiViews
 
</Directory>
 
 
 
</VirtualHost>
 
</pre>
 
 
 
==Website aktivieren==
 
*a2ensite nextcloud.conf
 
*a2dissite 000-default.conf
 
*systemctl reload apache2
 
 
 
==Nextcloud Installation im Browser starten==
 
*http://nc.it213.int
 
 
 
 
 
==Nextcloud Einrichtung im Webbrowser==
 
 
 
{| class="wikitable"
 
! Feld im Installer
 
! Eingabe
 
! Beschreibung
 
|-
 
| Administration account name
 
| admin
 
| Name des Administrators für Nextcloud.
 
|-
 
| Administration account password
 
| frei wählen
 
| 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
 
 
 
<pre>
 
*/5 * * * * php -f /var/www/nextcloud/cron.php
 
</pre>
 

Aktuelle Version vom 12. März 2026, 08:25 Uhr