Benutzer-Werkzeuge

Webseiten-Werkzeuge


linux:anwendungen:nextcloud:installation

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
linux:anwendungen:nextcloud:installation [2023/12/04 15:38] – Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1linux:anwendungen:nextcloud:installation [2024/01/03 14:18] (aktuell) max
Zeile 74: Zeile 74:
 certbot --apache certbot --apache
  
 +</code>
 +
 +====== Rechte der Nextcloud Struktur setzen ======
 +Dies sollte manuell funktionieren, ansonsten dient das nachfolgende Nextcloud Skript dazu:
 +
 +<code bash>
 +#!/bin/bash
 +nextcloudpath='/webserver/cloud'
 +webuser='www-data'
 +webgroup='www-data'
 +rootuser='root'
 +
 +printf "Creating possible missing Directories\n"
 +mkdir -p $nextcloudpath/data
 +mkdir -p $nextcloudpath/assets
 +mkdir -p $nextcloudpath/updater
 +
 +printf "chmod Files and Directories\n"
 +find ${nextcloudpath}/ -type f -print0 | xargs -0 chmod 0640
 +find ${nextcloudpath}/ -type d -print0 | xargs -0 chmod 0750
 +
 +printf "chown Directories\n"
 +chown -R ${rootuser}:${webgroup} ${nextcloudpath}
 +chown -R ${webuser}:${webgroup} ${nextcloudpath}/apps/
 +chown -R ${webuser}:${webgroup} ${nextcloudpath}/assets/
 +chown -R ${webuser}:${webgroup} ${nextcloudpath}/config/
 +chown -R ${webuser}:${webgroup} ${nextcloudpath}/data/
 +chown -R ${webuser}:${webgroup} ${nextcloudpath}/themes/
 +chown -R ${webuser}:${webgroup} ${nextcloudpath}/updater/
 +
 +chmod +x ${nextcloudpath}/occ
 +
 +printf "chmod/chown .htaccess\n"
 +if [ -f ${nextcloudpath}/.htaccess ]
 + then
 +  chmod 0644 ${nextcloudpath}/.htaccess
 +  chown ${rootuser}:${webgroup} ${nextcloudpath}/.htaccess
 +fi
 +if [ -f ${nextcloudpath}/data/.htaccess ]
 + then
 +  chmod 0644 ${nextcloudpath}/data/.htaccess
 +  chown ${rootuser}:${webgroup} ${nextcloudpath}/data/.htaccess
 +fi
 </code> </code>
  
linux/anwendungen/nextcloud/installation.1701704316.txt.gz · Zuletzt geändert: 2023/12/04 15:38 von 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki