===== Aufgabe: Nextcloud Installation ===== Eine Schnell-ToDo für die Installation von Nextcloud. **Vorgabe Benuter** SQL-User: ncuser SQL-PW: password NC-User: admin NC-Passwort: password ** System aktualisieren ** sudo apt update && sudo apt upgrade **Apache, PHP und benötigte Module installieren** sudo apt install apache2 mariadb-server \ libapache2-mod-php php php-mysql php-xml \ php-gd php-curl php-zip php-mbstring php-intl \ php-bcmath php-imagick **Datenbank anlegen** sudo mysql -u root CREATE DATABASE nextcloud; CREATE USER 'ncuser'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON nextcloud.* TO 'ncuser'@'localhost'; FLUSH PRIVILEGES; EXIT; **Nextcloud herunterladen und entpacken**\\ Die passende Versionen kann man hier finden: https://download.nextcloud.com/server/releases/ wget https://download.nextcloud.com/server/releases/latest.zip unzip latest.zip sudo mv nextcloud /var/www/html/ **Rechte setzen** sudo chown -R www-data:www-data /var/www/html/nextcloud **Apache-Konfiguration anpassen** sudo nano /etc/apache2/sites-available/nextcloud.conf **VHost eintragen, falls nötig** **Apache aktivieren und neu starten** sudo a2ensite nextcloud.conf sudo a2enmod rewrite headers env dir mime sudo systemctl restart apache2 **Installation im Browser abschließen** http:///nextcloud