aufgaben:nextcloud:installation
Dies ist eine alte Version des Dokuments!
Inhaltsverzeichnis
01 - Nextcloud Installation
Getestet mit Ubuntu 2404 LTS
GUI User/Passwörter: Anmelden: Admin Passwort: Start1234
Datenbankkonto: nc_user Datenbank-Passwort: nc_pass Datenbank-Name: nextcloud Datenbank-Host: localhost
Vorbereiten
System Update
apt update && apt upgrade
Benötigte Pakete
apt install -y apache2 mariadb-server openssl php wget curl zip unzip
| Paket | Funktion |
|---|---|
| apache2 | Apache Hypertext Transfer Protocol Server |
| mariadb-server | the MariaDB command-line tool |
| openssl | OpenSSL command line tool |
| php | PHP Command Line Interface ‚CLI‘ |
| wget | The non-interactive network downloader |
| curl | tool for transferring data from or to a server |
| zip | package and compress (archive) files |
| unzip | list, test and extract compressed files in a ZIP archive |
MaiaDB Einrichten
Switch to unix_socket authentication [Y/n] - Y Auswählen Change the root password? [Y/n] - Y Auswählen (PW merken) Remove anonymous users? [Y/n] - Y Auswählen Disallow root login remotely? [Y/n] - Y Auswählen Remove test database and access to it? [Y/n] - Y Auswählen Reload privilege tables now? [Y/n] - Y Auswählen
DB für die Nextcloud Einrichten
Es wird eine MySQL Datenbank für die Nextcloud Eingerichtet.
Datenbank Name: nextcloud
DB_User: nc_user
Passwort von nc_user: nc_pass
root@nc:~# mysql MariaDB [(none)]> create database nextcloud; Query OK, 1 row affected (0.001 sec) MariaDB [(none)]> create user 'nc_user'@'localhost' identified by 'nc_pass'; Query OK, 0 rows affected (0.001 sec) MariaDB [(none)]> grant all privileges on nextcloud.* to 'nc_user'@'localhost' identified by 'nc_pass'; Query OK, 0 rows affected (0.001 sec) MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.001 sec) MariaDB [(none)]> exit; Bye root@nc:~#
Testen
root@nc:~# mysql -u nc_user -p Enter password: MariaDB [(none)]> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | nextcloud | +--------------------+ 2 rows in set (0.001 sec) MariaDB [(none)]> exit;
Nextcloud Installairen
Download URL der Aktuellen Version https://nextcloud.com/de/install/#instructions-server
Login auf den eigenen Server
cd /var/www/html/ root@nc:# wget https://download.nextcloud.com/server/releases/latest.zip (kann unter Umständen auch ein wenig anders heißen.) root@nc:# unzip latest.zip root@nc:# chown -R www-data:www-data nextcloud/
Weiter in der GUI 02 - Fehlermeldung bei der Installation
aufgaben/nextcloud/installation.1737883946.txt.gz · Zuletzt geändert: (Externe Bearbeitung)
