I have installed nextcloud successful and can access to the Nextcloud-Startpage, where i have to finish my setup. Here i want to configure my “Data Directory” to a mounted folder - but get the error, that Nextcloud can’t create this folder or can’t write in this folder.
It’s mounted with fstab and rc.local: /dev/sdb /var/nextcloud_data ext4 defaults 0 2
(i know i should use uuid, i will change later…)
The folder permissions are like above, when mounted:
If the command sudo chown -R www-data:www-data /var/nextcloud_data (nginx, don’t know the webuser for Apache) doesn’t help, then you can try this post:
My first thought is, are you running SELinux or something similar to protect/safeguard the file system? If so, did you make the necessary rule exceptions?