Hey guys,
I could really use your help here, I’ve combed through multiple threads in here and on google trying to figure out, what exactly my problem is. I’ve spent hours at least and I’ve come to a point where I’m just hitting a wall. The weird thing is, is that I’ve setup Nextcloud before at least 3 other times. So here’s the deal.
The details:
OS: Centos 7
Webserver: nginx
Nextcloud: 15 (latest)
So, I get to the point where I’m able to browse to the page to put in my username and password and point the data directory, which I like to change the location, it’s simply my preference. Now, the data is on an external hard drive, so I have a path called /var/nextcloud, and when I mount my external it mounts data, so the full path is /var/nextcloud/data.
Here’s the thing, permissions! So, before I did www-data across the data directory, but I don’t have www-data on CentOS. According to what I’ve read, on CentOS www-data = apache, an account I DO have. So, here are the things I’ve tried:
Permissions:
sudo chmod -R 750 /var/nextcloud/data
sudo chmod -R 744 /var/nextcloud/data
sudo chmod -R 700 /var/nextcloud/data
Owners:
sudo chown -R apache:apache /var/nextcloud/data
sudo chown -R nginx:nginx /var/nextcloud/data
Restarted nginx, I don’t know what else to do. I’ve tried all sorts of combinations, rebooting, checking my nginx.conf file so that the user is apache in there (which is at /etc/nginx/nginx.conf).
I thought that it might have been SELinux, but it turned out not to be that either. So, I tried remounting, that didn’t work either. Like I said, I tried rebooting, nothing.
I simply don’t understand why permissions is such a problem for me, it seems easy enough, but I’m just not going anywhere with it. What am I doing wrong? I’ve followed Nextcloud documentation, I went through two set of notes that I have from previous installs, it’s just not making sense to me.