Hallo Forum,
ich versuche Nextcloud als Heimathafen für meine mobilen Daten einzurichten. Nextcloud ist zusammen mit Mginx, MariaDB, und PHP installiert. Der Nginx tut auch. Nextcloud hört im Moment auf einem Port nur in mein Heimnetz (wird sich später wohl noch ändern; oder es wird über VPN in's Heimnetz angebunden).
Nextcloud sollte auch soweit installiert sein; es meldet sich mit seiner Seite - allerding mit der Meldung:
Can't write into config directory!
This can usually be fixed by giving the webserver write access to the config directory.. Ich würde das so interpretieren, dass Nextcloud die falschen Zugriffsrechte für sein Config-Verzeichnis findet 😉 Das sieht wie folgt aus:
[root@geordi nextcloud]# ls -al
insgesamt 164
drwxr-xr-x 14 http http 4096 24. Mär 20:24 .
drwxr-xr-x 5 root root 4096 22. Feb 20:51 ..
drwxr-xr-x 29 root http 4096 27. Feb 17:49 3rdparty
drwxr-xr-x 45 root http 4096 28. Feb 19:03 apps
-rw-r--r-- 1 root http 8868 27. Feb 17:49 AUTHORS
lrwxrwxrwx 1 root root 30 24. Mär 20:24 config -> /etc/webapps/nextcloud/config/
-rw-r--r-- 1 root http 3638 27. Feb 17:49 console.php
drwxr-xr-x 16 root http 4096 27. Feb 17:49 core
-rw-r--r-- 1 root http 5353 27. Feb 17:49 cron.php
drwxr-x--- 2 http http 4096 25. Feb 21:57 data
-rw-r--r-- 1 root http 40622 27. Feb 17:49 db_structure.xml
-rw-r--r-- 1 root http 2635 27. Feb 17:49 .htaccess
-rw-r--r-- 1 root http 179 27. Feb 17:49 index.html
-rw-r--r-- 1 root http 2471 27. Feb 17:49 index.php
drwxr-xr-x 3 root http 4096 27. Feb 17:49 l10n
drwxr-xr-x 6 root http 4096 27. Feb 17:49 lib
-rwxr-xr-x 1 root http 283 27. Feb 17:49 occ
drwxr-xr-x 2 root http 4096 27. Feb 17:49 ocs
drwxr-xr-x 2 root http 4096 27. Feb 17:49 ocs-provider
-rw-r--r-- 1 root http 3184 27. Feb 17:49 public.php
-rw-r--r-- 1 root http 5431 27. Feb 17:49 remote.php
drwxr-xr-x 4 root http 4096 27. Feb 17:49 resources
-rw-r--r-- 1 root http 26 27. Feb 17:49 robots.txt
drwxr-xr-x 11 root http 4096 27. Feb 17:49 settings
-rw-r--r-- 1 root http 2110 27. Feb 17:49 status.php
drwxr-xr-x 3 root http 4096 27. Feb 17:49 themes
drwxr-xr-x 2 root http 4096 27. Feb 17:49 updater
-rw-r--r-- 1 root http 163 27. Feb 17:49 .user.ini
-rw-r--r-- 1 root http 277 27. Feb 17:49 version.php
[root@geordi nextcloud]# ls -l /etc/webapps/nextcloud/config
insgesamt 88
-rw-r--r-- 1 http http 41687 25. Feb 22:01 config.php
-rw-r--r-- 1 http http 41688 27. Feb 17:49 config.sample.php
[root@geordi nextcloud]
Also das eigentliche config-Verzeichnis unter
/etc gehört
http:http - sollte also stimmen. Der Link in
/usr/share/webapps/nextcloud gehört
root:root - was ja restriktiver wäre und somit Nextcloud (welches laut Doku unter
http läuft) den Zugriff verbieten würde. Warum der Link einem anderen User gehört als das Ziel ist mir nur bedingt klar (richtig: habe ich als user
root angelegt).
Wie bekomme ich den Link denn zu
http:http? Als user
http kann ich mich nicht anmelden - auch nicht auf dem Umweg über
root. Hat jemand einen Tipp? Gibt es noch andere Configs oder Dateien, die noch falsche Permissions haben?
Danke,
Photor