Nextcloud: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(5 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
 
*systemctl reload apache2
 
 
 
==Nextcloud Installation im Browser starten==
 
*http://nc.it213.int
 
 
 
==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