NextCloud alternate data location
-
@travisdh1 My dilemma is that I am trying to set up NC with an alternate "data" location which is set as /data. I can install NC all day long without issue unless I try to move the data location during install. I have tried both ways - a data folder in the same partition as the OS and with a separate disk (virtual) that is mounted as /data. Neither of those will work. I get permission errors. Apache:Apache is the owner, etc. but it does not work. I can use the default location in /var/www/html....and it works fine. If I use fstab to mount /data to /var/www/nextcloud... it works. I have been pounding my head against the wall. Everything seems correct but it has the permission on the /data in the wizard. I want a small install for the OS and a large data drive (both virtual disks). I need to retire my old server but want to set up the new one following best practices. Not having any luck as you can see.
-
@travisdh1 On on one of the test instances I used Cockpit to mount the new vdisk as /data and that works fine. NC jsut doesn't like the permissions even though apache:apache is the owner.
-
@brandon220 said in NextCloud alternate data location:
@travisdh1 My dilemma is that I am trying to set up NC with an alternate "data" location which is set as /data. I can install NC all day long without issue unless I try to move the data location during install. I have tried both ways - a data folder in the same partition as the OS and with a separate disk (virtual) that is mounted as /data. Neither of those will work. I get permission errors. Apache:Apache is the owner, etc. but it does not work. I can use the default location in /var/www/html....and it works fine. If I use fstab to mount /data to /var/www/nextcloud... it works. I have been pounding my head against the wall. Everything seems correct but it has the permission on the /data in the wizard. I want a small install for the OS and a large data drive (both virtual disks). I need to retire my old server but want to set up the new one following best practices. Not having any luck as you can see.
I remember having issues, but they were with selinux, and @JaredBusch's guide steps through all the needed changes for that. I'll have to try a fresh install and see if I have problems with it.
-
@travisdh1 I thought that was the issue as well and temporarily disabled selinux and it did not fix my issue.