Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
centos:web_c7:nextcloud [17.09.2016 19:31. ] – [Webserver anhalten] djangocentos: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 ======
-{{:centos:web_c7:nextcloud:nextcloud-logo.png?nolink&200 |Bild: Owncloud Logo}}+{{:centos:web_c7:nextcloud:nextcloud-logo.png?nolink&200 |Bild: Nextcloud Logo}}
 Mit Hilfe von **[[https://nextcloud.com/|Nextcloud]]** kann man einen sicheren Datenraum z.B. auf eigenen Servern für seine Nutzer bereitstellen, so dass diese ihre vertraulichen Daten nicht bei einem der diversen Cloud-Dienste nutzen müssen.  Mit Hilfe von **[[https://nextcloud.com/|Nextcloud]]** kann man einen sicheren Datenraum z.B. auf eigenen Servern für seine Nutzer bereitstellen, so dass diese ihre vertraulichen Daten nicht bei einem der diversen Cloud-Dienste nutzen müssen. 
  
Zeile 6: Zeile 6:
  
 ===== Dokumentation ===== ===== Dokumentation =====
-Eine ausführliche Dokumentation findet sich in der **[[https://docs.nextcloud.com/server/9/Nextcloud_Server_Administration_Manual.pdf|Nextcloud Server Administration Manual]] //Release 9//**. +Eine ausführliche Dokumentation findet sich in der **[[https://docs.nextcloud.com/server/13/Nextcloud_Server_Administration_Manual.pdf|Nextcloud Server Administration Manual]] //Release 13//**.
  
 ===== 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)]> CREATE USER 'nextcloud_user'@'10.0.0.97' IDENTIFIED BY '/rb6(gKjabjz5sHdszwh2pc97dsnmdo364nf\';Query OK, 0 rows affected (0.18 sec)+MariaDB [(none)]> CREATE USER 'nextcloud_user'@'10.0.0.97' IDENTIFIED BY '/rb6(gKjabjz5sHdszwh2pc97dsnmdo364nf\'; 
 +Query OK, 0 rows affected (0.18 sec)
  
 MariaDB [(none)]> CREATE USER 'nextcloud_user'@'vml000097.dmz.nausch.org' IDENTIFIED BY '/rb6(gKjabjz5sHdszwh2pc97dsnmdo364nf\'; MariaDB [(none)]> CREATE USER 'nextcloud_user'@'vml000097.dmz.nausch.org' IDENTIFIED BY '/rb6(gKjabjz5sHdszwh2pc97dsnmdo364nf\';
Zeile 51: Zeile 51:
  
 Anschliessend holen wir uns das aktuelle **tar.bz2**-Archiv und dessen zugehörige **sha512** Prüfsumme auf unseren Server. Anschliessend holen wir uns das aktuelle **tar.bz2**-Archiv und dessen zugehörige **sha512** Prüfsumme auf unseren Server.
-   # wget https://download.nextcloud.com/server/releases/nextcloud-9.0.53.tar.bz2 +   # wget https://download.nextcloud.com/server/releases/nextcloud-13.0.4.tar.bz2 
-   # wget https://download.nextcloud.com/server/releases/nextcloud-9.0.53.tar.bz2.sha512+   # wget https://download.nextcloud.com/server/releases/nextcloud-13.0.4.tar.bz2.sha512
  
-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 /srv/www/html/+   # tar -jxpvf nextcloud-13.0.4.tar.bz2 -C /srv/www/html/
  
 ===== Berechtigungen anpassen ===== ===== Berechtigungen anpassen =====
-Anschließend passen wir die Berechtigungen des Verzeichnisses //**/srv/www/html/nextcloud**// an, so dass unser Apache-User unter dem der HTTP-Daemon läuft darauf zugreifen kann.+Anschliessend passen wir die Berechtigungen des Verzeichnisses //**/srv/www/html/nextcloud**// an, so dass unser Apache-User unter dem der HTTP-Daemon läuft darauf zugreifen kann.
    # chown -R apache:apache /srv/www/html/nextcloud    # chown -R apache:apache /srv/www/html/nextcloud
  
Zeile 117: Zeile 117:
         Require all denied         Require all denied
     </LocationMatch>     </LocationMatch>
 +
 +    # Link für DAV-Support 
 +    Redirect 301 /.well-known/carddav /remote.php/dav
 +    Redirect 301 /.well-known/caldav /remote.php/dav
  
     # Welche Logdateien sollen beschrieben werden     # Welche Logdateien sollen beschrieben werden
Zeile 208: Zeile 212:
 {{ :centos:web_c7:nextcloud:nextcloud_02.png?direct&901 |Bild: Bildschirmhardcopy WEB-GUI Nextcloud Erstkonfiguration}} {{ :centos:web_c7:nextcloud:nextcloud_02.png?direct&901 |Bild: Bildschirmhardcopy WEB-GUI Nextcloud Erstkonfiguration}}
  
-Haben wir alle Daten richtig eingegeben beenden wir die Konfiguration übder die Schaltfläche **[ Installation abschließen ]**. uns wir anschließend eine Hinweis-Seite zu den zur Verfügung stehenden Clients angezeigt.+Haben wir alle Daten richtig eingegeben beenden wir die Konfiguration über die Schaltfläche **[ Installation abschließen ]**. uns wir anschliessend eine Hinweis-Seite zu den zur Verfügung stehenden Clients angezeigt.
  
 {{ :centos:web_c7:nextcloud:nextcloud_03.png?direct&900 |Bild: Bildschirmhardcopy WEB-GUI Nextcloud Erstkonfiguration}} {{ :centos:web_c7:nextcloud:nextcloud_03.png?direct&900 |Bild: Bildschirmhardcopy WEB-GUI Nextcloud Erstkonfiguration}}
  
-Dieses Hinweisefenster beenden wir über das **x** in der rechten oberen Ecke des eingeblendeten Hinweisfensters und gelangen so zum Hauptfenster von **Nextcloud**.+Dieses Hinweisfenster beenden wir über das **x** in der rechten oberen Ecke des eingeblendeten Hinweisfensters und gelangen so zum Hauptfenster von **Nextcloud**.
  
 {{ :centos:web_c7:nextcloud:nextcloud_04.png?direct&900 |Bild: Bildschirmhardcopy WEB-GUI Nextcloud Erstkonfiguration}} {{ :centos:web_c7:nextcloud:nextcloud_04.png?direct&900 |Bild: Bildschirmhardcopy WEB-GUI Nextcloud Erstkonfiguration}}
Zeile 218: Zeile 222:
 ===== Update/Upgrade ===== ===== Update/Upgrade =====
 ==== Download ==== ==== Download ====
-Bevor wir uns das aktuelle (Update-)Programmpaket von **nextcloud** herunterladen, wechseln wir in unser lokales Paketverzeichnis.+Bevor wir uns das aktuelle (Update-)Programmpaket von **[[https://download.nextcloud.com/server/releases/|nextcloud]]** herunterladen, wechseln wir in unser lokales Paketverzeichnis.
    # cd /usr/local/src/packages/    # cd /usr/local/src/packages/
  
 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://download.nextcloud.com/server/releases/nextcloud-10.0.0.tar.bz2 +   # wget https://download.nextcloud.com/server/releases/nextcloud-14.0.4.tar.bz2 
-   # wget https://download.nextcloud.com/server/releases/nextcloud-10.0.0.tar.bz2.sha512+   # wget https://download.nextcloud.com/server/releases/nextcloud-14.0.4.tar.bz2.sha512
  
-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.
Zeile 235: Zeile 239:
 ==== Webserver anhalten ==== ==== Webserver anhalten ====
 Bevor wir nun unsere bestehende Installation updaten, versetzen wir erst noch unseren NextCloud-Server in den Wartungsmodus. Bevor wir nun unsere bestehende Installation updaten, versetzen wir erst noch unseren NextCloud-Server in den Wartungsmodus.
-   # sudo -u apache php /srv/www/html/nextcloud/occ maintenance:mode --on+   # sudo -u apache php /srv/www/html/cloud/occ maintenance:mode --on
  
   Maintenance mode enabled   Maintenance mode enabled
  
-Anschliessend stoppen wir unseren laufenden NextCloud-Webserver. Dazu deaktivieren wir die Konfigurationsdatei unseres Apache-vHosts indem wir diese umbenennen und den Webserver einmal durchstarten.  +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 /etc/httpd/conf.d/nextcloud.conf /etc/httpd/conf.d/nextcloud.conf.deaktiviert+   # mv /etc/httpd/conf.d/3rd_cloud.conf /etc/httpd/conf.d/3rd_cloud.conf.deaktiviert
  
    # systemctl restart httpd.service    # systemctl restart httpd.service
Zeile 248: Zeile 252:
    # mv /srv/www/html/nextcloud /srv/www/html/nextcloud.old    # mv /srv/www/html/nextcloud /srv/www/html/nextcloud.old
  
 +   # cp -ra /srv/www/html/cloud /srv/www/html/cloud.$(date +%y%m%d)
 ==== 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-10.0.0.tar.bz2 -C /srv/www/html/+   # tar -jxpvf /usr/local/src/packages/nextcloud-14.0.4.tar.bz2 -C /srv/www/html/
  
 +   # rm -rf /srv/www/html/cloud && mv /srv/www/html/nextcloud /srv/www/html/cloud
 ==== Berechtigungen anpassen ==== ==== Berechtigungen anpassen ====
-Anschliessend passen wir die Berechtigungen des Verzeichnisses //**/srv/www/html/nextcloud**// an, so dass unser Apache-User unter dem der HTTP-Daemon läuft darauf zugreifen bzw. dort auch hineinschreiben kann. +Anschliessend passen wir die Berechtigungen des Verzeichnisses //**/srv/www/html/cloud**// an, so dass unser Apache-User unter dem der HTTP-Daemon läuft darauf zugreifen bzw. dort auch hineinschreiben kann. 
-   # chown -R apache:apache /srv/www/html/nextcloud+   # chown -R apache:apache /srv/www/html/cloud
  
 ==== Konfiguration erneuern ==== ==== Konfiguration erneuern ====
 Die Konfigurationsdatei **config.php** unserer bestehenden Installation kopieren wir nun in unser neues Updateverzeichnis. Die Konfigurationsdatei **config.php** unserer bestehenden Installation kopieren wir nun in unser neues Updateverzeichnis.
-   # cp /srv/www/html/nextcloud.old/config/config.php /srv/www/html/nextcloud/config/config.php+   # cp -a /srv/www/html/cloud.$(date +%y%m%d)/config/config.php /srv/www/html/cloud/config/config.php 
  
 ==== Datenverzeichnis sichern/kopieren ==== ==== Datenverzeichnis sichern/kopieren ====
Zeile 271: Zeile 278:
  
    # systemctl restart httpd.service    # 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.
 +
 +{{ :centos:web_c7:nextcloud_05.png?600 |Bild: Anzeige des Wartungsmodus im Web-Browser}}
 +
 +
 +==== 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 /srv/www/html/cloud/occ upgrade
 +
 +<html><pre class="code">
 +<font style="color: rgb(0, 0, 0)">Nextcloud or one of the apps require upgrade - only a limited number of commands are available
 +You may use your browser or the occ upgrade command to do the upgrade</font>
 +<font style="color: rgb(29, 180, 29)">Set log level to debug
 +Updating database schema
 +Updated database</font>
 +<font style="color: rgb(208, 179, 51)">Disabled incompatible app: admin_notifications
 +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>
 +<font style="color: rgb(29, 180, 29)">Updating &#60;federatedfilesharing&#62; ...
 +Updated &#60;federatedfilesharing&#62; to 1.4.0
 +Updating &#60;files_pdfviewer&#62; ...
 +Updated &#60;files_pdfviewer&#62; to 1.3.2
 +Updating &#60;files_texteditor&#62; ...
 +Updated &#60;files_texteditor&#62; to 2.6.0
 +Updating &#60;files_videoplayer&#62; ...
 +Updated &#60;files_videoplayer&#62; to 1.3.0
 +Updating &#60;gallery&#62; ...
 +Updated &#60;gallery&#62; to 18.1.0
 +Updating &#60;password_policy&#62; ...
 +Updated &#60;password_policy&#62; to 1.4.0
 +Updating &#60;provisioning_api&#62; ...
 +Updated &#60;provisioning_api&#62; to 1.4.0
 +Updating &#60;serverinfo&#62; ...
 +Updated &#60;serverinfo&#62; to 1.4.0
 +Updating &#60;survey_client&#62; ...
 +Updated &#60;survey_client&#62; to 1.2.0
 +Updating &#60;twofactor_backupcodes&#62; ...
 +Updated &#60;twofactor_backupcodes&#62; to 1.3.1
 +Updating &#60;updatenotification&#62; ...
 +Updated &#60;updatenotification&#62; to 1.4.1
 +Updating &#60;federation&#62; ...
 +Updated &#60;federation&#62; to 1.4.0
 +Updating &#60;lookup_server_connector&#62; ...
 +Updated &#60;lookup_server_connector&#62; to 1.2.0
 +Updating &#60;oauth2&#62; ...
 +Updated &#60;oauth2&#62; to 1.2.1
 +Updating &#60;files&#62; ...
 +Updated &#60;files&#62; to 1.9.0
 +Updating &#60;activity&#62; ...
 +Updated &#60;activity&#62; to 2.7.0
 +Updating &#60;dav&#62; ...</font>
 +Fix broken values of calendar objects
 +
 + Done
 +    0/0 [>---------------------------]   0%
 +<font style="color: rgb(29, 180, 29)">Updated <dav> to 1.6.0
 +Updating &#60;files_sharing&#62; ...
 +Updated &#60;files_sharing&#62; to 1.6.2
 +Updating &#60;files_trashbin&#62; ...
 +Updated &#60;files_trashbin&#62; to 1.4.1
 +Updating &#60;files_versions&#62; ...
 +Updated &#60;files_versions&#62; to 1.7.1
 +Updating &#60;sharebymail&#62; ...
 +Updated &#60;sharebymail&#62; to 1.4.0
 +Updating &#60;workflowengine&#62; ...
 +Updated &#60;workflowengine&#62; to 1.4.0
 +Updating &#60;comments&#62; ...
 +Updated &#60;comments&#62; to 1.4.0
 +Updating &#60;firstrunwizard&#62; ...
 +Updated &#60;firstrunwizard&#62; to 2.3.0
 +Updating &#60;nextcloud_announcements&#62; ...
 +Updated &#60;nextcloud_announcements&#62; to 1.3.0
 +Updating &#60;notifications&#62; ...
 +Updated &#60;notifications&#62; to 2.2.1
 +Updating &#60;systemtags&#62; ...
 +Updated &#60;systemtags&#62; to 1.4.0
 +Updating &#60;theming&#62; ...
 +Updated &#60;theming&#62; to 1.5.0
 +Checking for update of app activity in appstore
 +Checked for update of app "activity" in appstore 
 +Checking for update of app cloud_federation_api in appstore
 +Checked for update of app "cloud_federation_api" in appstore 
 +Checking for update of app comments in appstore
 +Checked for update of app "comments" in appstore 
 +Checking for update of app dav in appstore
 +Checked for update of app "dav" in appstore 
 +Checking for update of app federatedfilesharing in appstore
 +Checked for update of app "federatedfilesharing" in appstore 
 +Checking for update of app federation in appstore
 +Checked for update of app "federation" in appstore 
 +Checking for update of app files in appstore
 +Checked for update of app "files" in appstore 
 +Checking for update of app files_pdfviewer in appstore
 +Checked for update of app "files_pdfviewer" in appstore 
 +Checking for update of app files_sharing in appstore
 +Checked for update of app "files_sharing" in appstore 
 +Checking for update of app files_texteditor in appstore
 +Checked for update of app "files_texteditor" in appstore 
 +Checking for update of app files_trashbin in appstore
 +Checked for update of app "files_trashbin" in appstore 
 +Checking for update of app files_versions in appstore
 +Checked for update of app "files_versions" in appstore 
 +Checking for update of app files_videoplayer in appstore
 +Checked for update of app "files_videoplayer" in appstore 
 +Checking for update of app firstrunwizard in appstore
 +Checked for update of app "firstrunwizard" in appstore 
 +Checking for update of app gallery in appstore
 +Checked for update of app "gallery" in appstore 
 +Checking for update of app logreader in appstore
 +Checked for update of app "logreader" in appstore 
 +Checking for update of app lookup_server_connector in appstore
 +Checked for update of app "lookup_server_connector" in appstore 
 +Checking for update of app nextcloud_announcements in appstore
 +Checked for update of app "nextcloud_announcements" in appstore 
 +Checking for update of app notifications in appstore
 +Checked for update of app "notifications" in appstore 
 +Checking for update of app oauth2 in appstore
 +Checked for update of app "oauth2" in appstore 
 +Checking for update of app password_policy in appstore
 +Checked for update of app "password_policy" in appstore 
 +Checking for update of app provisioning_api in appstore
 +Checked for update of app "provisioning_api" in appstore 
 +Checking for update of app serverinfo in appstore
 +Checked for update of app "serverinfo" in appstore 
 +Checking for update of app sharebymail in appstore
 +Checked for update of app "sharebymail" in appstore 
 +Checking for update of app survey_client in appstore
 +Checked for update of app "survey_client" in appstore 
 +Checking for update of app systemtags in appstore
 +Checked for update of app "systemtags" in appstore 
 +Checking for update of app theming in appstore
 +Checked for update of app "theming" in appstore 
 +Checking for update of app twofactor_backupcodes in appstore
 +Checked for update of app "twofactor_backupcodes" in appstore 
 +Checking for update of app updatenotification in appstore
 +Checked for update of app "updatenotification" in appstore 
 +Checking for update of app workflowengine in appstore
 +Checked for update of app "workflowengine" in appstore 
 +Starting code integrity check...
 +Finished code integrity check
 +Update successful
 +Maintenance mode is kept active
 +Reset log level</font>
 +</pre>
 +</html>
 +
 +Da der Upgrade nun erfolgreich abgeschlossen ist, können wir den Wartungsmodus unserer NextCloud-Installation wieder beenden.
 +   # sudo -u apache php /srv/www/html/nextcloud/occ maintenance:mode --off
 +
 +  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.
 +
 +{{ :centos:web_c7:nextcloud_06.png?600 |Bild: Anmeldebilschirm der Web-GUI unseres NextCloud Servers}}
 +
 +<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!
 +</WRAP>
 +
 +
 +{{ :centos:web_c7:nextcloud_07.png |Bild: Systeminformationen im Adminmenü}}
 +
 +So erzeugen wir wie angeraten die fehlenden Indizes.
 +   # sudo -u apache php /srv/www/html/cloud/occ db:add-missing-indices
 +
 +<html><pre class="code">
 +<font style="color: rgb(29, 180, 29)">Check indices of the share table.
 +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.</font>
 +</pre>
 +</html>
 +
 +Eine erneute Überprüfung zeigt nun, dass alles wieder in Ordnung ist.
 +
 +{{ :centos:web_c7:nextcloud_08.png |Bild: Systeminformationen im Adminmenü}}
 +
 +Auch ein Test über den angegebenen link zum [[https://scan.nextcloud.com/|Nextcloud Security Scanner]] sollte ein entsprechend aktuelles Ergebnis liefern.
 +
 +{{ :centos:web_c7:nextcloud_09.png?800 |Bild: Nextcloud Security Web-Scan}}
 +
 +/*
 + cd /usr/local/src/packages/
 + wget https://download.nextcloud.com/server/releases/nextcloud-15.0.1.tar.bz2
 + wget https://download.nextcloud.com/server/releases/nextcloud-15.0.1.tar.bz2.sha512
 + sha512sum nextcloud-15.0.1.tar.bz2 > nextcloud-15.0.1.tar.bz2.sha512.local
 + diff nextcloud-15.0.1.tar.bz2.sha512.local nextcloud-15.0.1.tar.bz2.sha512
 + sudo -u apache php /srv/www/html/cloud/occ maintenance:mode --on
 + mv /etc/httpd/conf.d/3rd_cloud.conf /etc/httpd/conf.d/3rd_cloud.conf.deaktiviert
 + apachectl -t
 + systemctl restart httpd.service 
 + cp -ra /srv/www/html/cloud /srv/www/html/cloud.$(date +%y%m%d)
 + tar -jxpvf /usr/local/src/packages/nextcloud-15.0.1.tar.bz2 -C /srv/www/html/
 + rm -rf /srv/www/html/cloud && mv /srv/www/html/nextcloud /srv/www/html/cloud
 + chown -R apache:apache /srv/www/html/cloud
 + cp -a /srv/www/html/cloud.$(date +%y%m%d)/config/config.php /srv/www/html/cloud/config/config.php
 + mv /etc/httpd/conf.d/3rd_cloud.conf.deaktiviert /etc/httpd/conf.d/3rd_cloud.conf
 + apachectl -t
 + systemctl restart httpd.service 
 + sudo -u apache php /srv/www/html/cloud/occ upgrade
 + sudo -u apache php /srv/www/html/cloud/occ maintenance:mode --off
 +
 +*/
  
  
Zeile 279: Zeile 525:
   * **[[http://dokuwiki.nausch.org/doku.php/|Zurück zur Startseite]]**   * **[[http://dokuwiki.nausch.org/doku.php/|Zurück zur Startseite]]**
  
-~~DISCUSSION~~ 
  • centos/web_c7/nextcloud.1474140682.txt.gz
  • Zuletzt geändert: 17.09.2016 19:31.
  • von django