Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
owncloud [2021/10/24 17:59] 127.0.0.1 Externe Bearbeitung |
owncloud [2025/11/13 15:16] (aktuell) thomas |
||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | Die installation von Nextcloud ist [[http://www.raspberry-pi-geek.de/Magazin/2016/05/Owncloud-Fork-Nextcloud-auf-dem-RasPi-im-Praxistest/(offset)/2|hier]] beschrieben. | + | ====== Installation ====== |
| + | Zuerst muß in mysql ein Benutzer und eine Datenbank für Nextcloud angelegt werden. | ||
| + | <code> | ||
| + | CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'password';GRANT USAGE ON *.* TO 'nextcloud'@'localhost'; | ||
| + | CREATE DATABASE IF NOT EXISTS `nextcloud`;GRANT ALL PRIVILEGES ON `nextcloud`.* TO 'nextcloud'@'localhost'; | ||
| + | </code> | ||
| - | Beschreibung: | + | Danach kann die Installation mit Nextcloud occ gemacht werden: |
| - | https://strobelstefan.org/2018/04/03/nextcloud-auf-dem-raspberry-pi/#MariaDB%20%E2%80%93%20Datenbank%20erstellen%20und%20absichern | + | |
| - | + | ||
| - | ===== Datenbank anlegen ===== | + | |
| <code> | <code> | ||
| - | mysql -u root -p | + | cd /var/www/nextcloud/ |
| - | CREATE DATABASE nextcloud; | + | sudo -E -u www-data php occ maintenance:install --database |
| - | CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'password'; | + | "mysql" --database-name "nextcloud" --database-user "root" --database-pass |
| - | GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost'; | + | "password" --admin-user "admin" --admin-pass "password" |
| - | FLUSH PRIVILEGES; | + | |
| - | exit; | + | |
| </code> | </code> | ||
| + | (https://docs.nextcloud.com/server/stable/admin_manual/occ_command.html#command-line-installation) | ||
| + | |||
| + | Die installation von Nextcloud ist [[http://www.raspberry-pi-geek.de/Magazin/2016/05/Owncloud-Fork-Nextcloud-auf-dem-RasPi-im-Praxistest/(offset)/2|hier]] beschrieben. | ||
| ===== Nextcloud ===== | ===== Nextcloud ===== | ||