Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
centos:web_c7:nextcloud [17.09.2016 18:39. ] – [Update/Upgrade] django | centos:web_c7:nextcloud [10.01.2019 19:29. ] (aktuell) – Nextcloud unter CentOS 7.x installieren und betreiben django | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Nextcloud unter CentOS 7.x installieren und betreiben ====== | ====== Nextcloud unter CentOS 7.x installieren und betreiben ====== | ||
- | {{: | + | {{: |
Mit Hilfe von **[[https:// | Mit Hilfe von **[[https:// | ||
Zeile 6: | Zeile 6: | ||
===== Dokumentation ===== | ===== Dokumentation ===== | ||
- | Eine ausführliche Dokumentation findet sich in der **[[https:// | + | Eine ausführliche Dokumentation findet sich in der **[[https:// |
===== vorbereitende Konfiguration ===== | ===== vorbereitende Konfiguration ===== | ||
Zeile 27: | Zeile 26: | ||
Query OK, 1 row affected (0.00 sec) | Query OK, 1 row affected (0.00 sec) | ||
- | MariaDB [(none)]> | + | MariaDB [(none)]> |
+ | Query OK, 0 rows affected (0.18 sec) | ||
MariaDB [(none)]> | MariaDB [(none)]> | ||
Zeile 50: | Zeile 50: | ||
# cd / | # cd / | ||
- | Anschließend | + | Anschliessend |
- | # wget https:// | + | # wget https:// |
- | # wget https:// | + | # wget https:// |
- | Vom heruntergeladenen Archiv **nextcloud-9.0.53.tar.bz2** generieren wir einen eigenen Hash-Wert und legen diesen in einer lokalen Datei ab. | + | Vom heruntergeladenen Archiv **nextcloud-13.0.4.tar.bz2** generieren wir einen eigenen Hash-Wert und legen diesen in einer lokalen Datei ab. |
- | # sha512sum nextcloud-9.0.53.tar.bz2 > nextcloud-9.0.53.tar.bz2.sha512.local | + | # sha512sum nextcloud-13.0.4.tar.bz2 > nextcloud-13.0.4.tar.bz2.sha512.local |
- | Nun können wir die beiden Hash-werte vergleichen und somit prüfen, ob dem Archiv soweit vertraut werden kann. | + | Nun können wir die beiden Hash-Werte vergleichen und somit prüfen, ob dem Archiv soweit vertraut werden kann. |
- | # diff nextcloud-9.0.53.tar.bz2.sha512.local nextcloud-9.0.53.tar.bz2.sha512 | + | # diff nextcloud-13.0.4.tar.bz2.sha512.local nextcloud-13.0.4.tar.bz2.sha512 |
Sind beide Werte identisch, erfolgt keine Ausgabe - wir können also mit der Installation und Konfiguration fortschreiten. | Sind beide Werte identisch, erfolgt keine Ausgabe - wir können also mit der Installation und Konfiguration fortschreiten. | ||
Zeile 64: | Zeile 64: | ||
===== Entpacken ===== | ===== Entpacken ===== | ||
Nun entpacken wir das heruntergeladene **tar.bz2**-Archiv an Ort und Stelle. | Nun entpacken wir das heruntergeladene **tar.bz2**-Archiv an Ort und Stelle. | ||
- | # tar -jxpvf nextcloud-9.0.53.tar.bz2 -C / | + | # tar -jxpvf nextcloud-13.0.4.tar.bz2 -C / |
===== Berechtigungen anpassen ===== | ===== Berechtigungen anpassen ===== | ||
- | Anschließend | + | Anschliessend |
# chown -R apache: | # chown -R apache: | ||
Zeile 117: | Zeile 117: | ||
Require all denied | Require all denied | ||
</ | </ | ||
+ | |||
+ | # Link für DAV-Support | ||
+ | Redirect 301 / | ||
+ | Redirect 301 / | ||
# Welche Logdateien sollen beschrieben werden | # Welche Logdateien sollen beschrieben werden | ||
Zeile 208: | Zeile 212: | ||
{{ : | {{ : | ||
- | Haben wir alle Daten richtig eingegeben beenden wir die Konfiguration | + | Haben wir alle Daten richtig eingegeben beenden wir die Konfiguration |
{{ : | {{ : | ||
- | Dieses | + | Dieses |
{{ : | {{ : | ||
Zeile 218: | Zeile 222: | ||
===== Update/ | ===== Update/ | ||
==== Download ==== | ==== Download ==== | ||
- | Bevor wir uns das aktuelle (Update-)Programmpaket von **nextcloud** herunterladen, | + | Bevor wir uns das aktuelle (Update-)Programmpaket von **[[https:// |
# cd / | # cd / | ||
Anschließend holen wir uns das aktuelle **tar.bz2**-Archiv und dessen zugehörige **sha512** Prüfsumme auf unseren Server. | Anschließend holen wir uns das aktuelle **tar.bz2**-Archiv und dessen zugehörige **sha512** Prüfsumme auf unseren Server. | ||
- | # wget https:// | + | # wget https:// |
- | # wget https:// | + | # wget https:// |
- | Vom heruntergeladenen Archiv **nextcloud-10.0.0.tar.bz2** generieren wir einen eigenen Hash-Wert und legen diesen in einer lokalen Datei ab. | + | Vom heruntergeladenen Archiv **nextcloud-13.0.6.tar.bz2** generieren wir einen eigenen Hash-Wert und legen diesen in einer lokalen Datei ab. |
- | # sha512sum nextcloud-10.0.0.tar.bz2 > nextcloud-10.0.0.tar.bz2.sha512.local | + | # sha512sum nextcloud-14.0.4.tar.bz2 > nextcloud-14.0.4.tar.bz2.sha512.local |
- | Nun können wir die beiden Hash-werte vergleichen und somit prüfen, ob dem Archiv soweit vertraut werden kann. | + | Nun können wir die beiden Hash-Werte vergleichen und somit prüfen, ob dem Archiv soweit vertraut werden kann. |
- | # diff nextcloud-10.0.0.tar.bz2.sha512.local nextcloud-10.0.0.tar.bz2.sha512 | + | # diff nextcloud-14.0.4.tar.bz2.sha512.local nextcloud-14.0.4.tar.bz2.sha512 |
Sind beide Werte identisch, erfolgt keine Ausgabe - wir können also nun mit dem Update unserer Installation beginnen. | Sind beide Werte identisch, erfolgt keine Ausgabe - wir können also nun mit dem Update unserer Installation beginnen. | ||
+ | |||
+ | ==== Webserver anhalten ==== | ||
+ | Bevor wir nun unsere bestehende Installation updaten, versetzen wir erst noch unseren NextCloud-Server in den Wartungsmodus. | ||
+ | # sudo -u apache php / | ||
+ | |||
+ | Maintenance mode enabled | ||
+ | |||
+ | Optional können wir auch unseren laufenden NextCloud-Webserver. Dazu deaktivieren wir die Konfigurationsdatei unseres Apache-vHosts indem wir diese umbenennen und den Webserver einmal durchstarten. | ||
+ | # mv / | ||
+ | |||
+ | # systemctl restart httpd.service | ||
+ | |||
+ | ==== bestehendes Installations-Verzeichnis sichern ==== | ||
+ | Nun sichern wir das bestehende Installationsverzeichnis indem wir es umbenennen. | ||
+ | # mv / | ||
+ | |||
+ | # cp -ra / | ||
+ | ==== Entpacken ==== | ||
+ | Nun entpacken wir das heruntergeladene **tar.bz2**-Archiv an Ort und Stelle. | ||
+ | # tar -jxpvf / | ||
+ | |||
+ | # rm -rf / | ||
+ | ==== Berechtigungen anpassen ==== | ||
+ | Anschliessend passen wir die Berechtigungen des Verzeichnisses // | ||
+ | # chown -R apache: | ||
+ | |||
+ | ==== Konfiguration erneuern ==== | ||
+ | Die Konfigurationsdatei **config.php** unserer bestehenden Installation kopieren wir nun in unser neues Updateverzeichnis. | ||
+ | # cp -a / | ||
+ | |||
+ | |||
+ | ==== Datenverzeichnis sichern/ | ||
+ | Haben wir das Datenverzeihnis im Web-ROOT-Verzeichnis unseres Apache-Webservers müssen wir nun noch die Daten zurücksichern. Hierzu kopieren wir den Inhalt der gesichterten NextCloud-Installation in das zuvor neu angelegte Verzeichnis. | ||
+ | # cp -avr / | ||
+ | |||
+ | Befindet sich das Datrenverzeichnis ausserhalb unseres Web-ROOT-Verzeichnisses brauchen wir nichts unternehmen, | ||
+ | |||
+ | ==== Webserver starten ==== | ||
+ | Nun können wir unseren NextCloud-Webserver wieder starten. Dazu aktivieren wir die Konfigurationsdatei unseres Apache-vHosts indem wir diese umbenennen und den Webserver einmal durchstarten. | ||
+ | # mv / | ||
+ | |||
+ | # systemctl restart httpd.service | ||
+ | |||
+ | Da wir nach wie vor unseren NextCloud-Server im Wartungsmodus laufen haben, wird einem Nutzer, der versucht sich an der WEB-GUI anzumelden ein entsprechender Hinweis eingeblendet. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | ==== Upgrade starten ==== | ||
+ | Nun starten wir den Upgrade unserer Intsallation. Je nach Grösse und Umfang unserer Installation wir es nun ein Weilchen Dauern bis die Aktualisierung unserer Installation abgeschlossen ist. | ||
+ | # sudo -u apache php / | ||
+ | |||
+ | < | ||
+ | <font style=" | ||
+ | You may use your browser or the occ upgrade command to do the upgrade</ | ||
+ | <font style=" | ||
+ | Updating database schema | ||
+ | Updated database</ | ||
+ | <font style=" | ||
+ | Disabled incompatible app: announcementcenter | ||
+ | Disabled incompatible app: apporder | ||
+ | Disabled incompatible app: audioplayer | ||
+ | Disabled incompatible app: bookmarks | ||
+ | Disabled incompatible app: bruteforcesettings | ||
+ | Disabled incompatible app: calendar | ||
+ | Disabled incompatible app: caniupdate | ||
+ | Disabled incompatible app: circles | ||
+ | Disabled incompatible app: contacts | ||
+ | Disabled incompatible app: deck | ||
+ | Disabled incompatible app: defaultlinkopen | ||
+ | Disabled incompatible app: drop_account | ||
+ | Disabled incompatible app: end_to_end_encryption | ||
+ | Disabled incompatible app: external | ||
+ | Disabled incompatible app: files_downloadactivity | ||
+ | Disabled incompatible app: files_retention | ||
+ | Disabled incompatible app: files_rightclick | ||
+ | Disabled incompatible app: flowupload | ||
+ | Disabled incompatible app: mail | ||
+ | Disabled incompatible app: mindmaps | ||
+ | Disabled incompatible app: mood | ||
+ | Disabled incompatible app: news | ||
+ | Disabled incompatible app: notes | ||
+ | Disabled incompatible app: polls | ||
+ | Disabled incompatible app: previewgenerator | ||
+ | Disabled incompatible app: quota_warning | ||
+ | Disabled incompatible app: radio | ||
+ | Disabled incompatible app: ransomware_protection | ||
+ | Disabled incompatible app: sharerenamer | ||
+ | Disabled incompatible app: socialsharing_email | ||
+ | Disabled incompatible app: spreed | ||
+ | Disabled incompatible app: tasks | ||
+ | Disabled incompatible app: twofactor_u2f</ | ||
+ | <font style=" | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Fix broken values of calendar objects | ||
+ | |||
+ | Done | ||
+ | 0/0 [> | ||
+ | <font style=" | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Updating &# | ||
+ | Updated &# | ||
+ | Checking for update of app activity in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app cloud_federation_api in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app comments in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app dav in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app federatedfilesharing in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app federation in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app files in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app files_pdfviewer in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app files_sharing in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app files_texteditor in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app files_trashbin in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app files_versions in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app files_videoplayer in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app firstrunwizard in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app gallery in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app logreader in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app lookup_server_connector in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app nextcloud_announcements in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app notifications in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app oauth2 in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app password_policy in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app provisioning_api in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app serverinfo in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app sharebymail in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app survey_client in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app systemtags in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app theming in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app twofactor_backupcodes in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app updatenotification in appstore | ||
+ | Checked for update of app " | ||
+ | Checking for update of app workflowengine in appstore | ||
+ | Checked for update of app " | ||
+ | Starting code integrity check... | ||
+ | Finished code integrity check | ||
+ | Update successful | ||
+ | Maintenance mode is kept active | ||
+ | Reset log level</ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Da der Upgrade nun erfolgreich abgeschlossen ist, können wir den Wartungsmodus unserer NextCloud-Installation wieder beenden. | ||
+ | # sudo -u apache php / | ||
+ | |||
+ | Nextcloud is in maintenance mode - no app have been loaded | ||
+ | Maintenance mode disabled | ||
+ | |||
+ | Nun können wir uns nun an der WEB-GUI unserer NextCloud-Instanz wieder anmelden und überprüfen die Funktionen. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | <WRAP center round tip 95%> | ||
+ | Am besten werfen wir dazu auch einmal einen Blick in die Systeminformationen als User Admin. So wird z.B. beim Update von Version **13** auf **14** Hinweise zur Anpassungen der Datenbank gegeben! | ||
+ | </ | ||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | So erzeugen wir wie angeraten die fehlenden Indizes. | ||
+ | # sudo -u apache php / | ||
+ | |||
+ | < | ||
+ | <font style=" | ||
+ | Adding additional share_with index to the share table, this can take some time... | ||
+ | Share table updated successfully. | ||
+ | Adding additional parent index to the share table, this can take some time... | ||
+ | Share table updated successfully. | ||
+ | Adding additional mtime index to the filecache table, this can take some time... | ||
+ | Filecache table updated successfully.</ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Eine erneute Überprüfung zeigt nun, dass alles wieder in Ordnung ist. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Auch ein Test über den angegebenen link zum [[https:// | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | /* | ||
+ | cd / | ||
+ | wget https:// | ||
+ | wget https:// | ||
+ | | ||
+ | diff nextcloud-15.0.1.tar.bz2.sha512.local nextcloud-15.0.1.tar.bz2.sha512 | ||
+ | sudo -u apache php / | ||
+ | mv / | ||
+ | | ||
+ | | ||
+ | cp -ra / | ||
+ | tar -jxpvf / | ||
+ | rm -rf / | ||
+ | chown -R apache: | ||
+ | cp -a / | ||
+ | mv / | ||
+ | | ||
+ | | ||
+ | sudo -u apache php / | ||
+ | sudo -u apache php / | ||
+ | |||
+ | */ | ||
+ | |||
Zeile 239: | Zeile 525: | ||
* **[[http:// | * **[[http:// | ||
- | ~~DISCUSSION~~ |