This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
EDIT: Solved, it was SELinux. I fixed it by setting the httpd_unified boolean
So I'm in the process of installing nextcloud with nginx on a Fedora 34 Server installation, but I'm running into some setup problems. I go to the domain I specified in the nginx config file and I'm presented with this:
So I went to check the nginx error log to see if I could get anything more specific, where I found this:
2021/09/14 21:20:22 [error] 1543#1543: *6 FastCGI sent in stderr: "PHP message: {"reqId":"dMMUinukGYDbgWkVCf5Q","level":3,"time":"2021-09-15T01:20:22 00:00","remoteAddr":"192.168.1.219","user":"--","app":"PHP","method":"GET","url":"/","message":"touch(): Unable to create file /var/www/nextcloud/config/config.php because Permission denied at /var/www/nextcloud/lib/private/Config.php#246"
This looks like a file permissions error, but when I go to that directory, all the permissions look fine:
ls -l /var/www/nextcloud
total 148
drwxr-xr-x. 43 nginx nginx 4096 Aug 4 01:44 3rdparty
drwxr-xr-x. 48 nginx nginx 4096 Aug 4 01:42 apps
-rw-r--r--. 1 nginx nginx 19327 Aug 4 01:41 AUTHORS
drwxr-xr-x. 2 nginx nginx 4096 Aug 4 01:44 config
-rw-r--r--. 1 nginx nginx 3924 Aug 4 01:41 console.php
-rw-r--r--. 1 nginx nginx 34520 Aug 4 01:41 COPYING
drwxr-xr-x. 22 nginx nginx 4096 Aug 4 01:44 core
-rw-r--r--. 1 nginx nginx 5121 Aug 4 01:41 cron.php
-rw-r--r--. 1 nginx nginx 156 Aug 4 01:41 index.html
-rw-r--r--. 1 nginx nginx 3454 Aug 4 01:41 index.php
drwxr-xr-x. 6 nginx nginx 4096 Aug 4 01:41 lib
-rw-r--r--. 1 nginx nginx 283 Aug 4 01:41 occ
drwxr-xr-x. 2 nginx nginx 4096 Aug 4 01:41 ocm-provider
drwxr-xr-x. 2 nginx nginx 4096 Aug 4 01:41 ocs
drwxr-xr-x. 2 nginx nginx 4096 Aug 4 01:41 ocs-provider
-rw-r--r--. 1 nginx nginx 3139 Aug 4 01:41 public.php
-rw-r--r--. 1 nginx nginx 5340 Aug 4 01:41 remote.php
drwxr-xr-x. 4 nginx nginx 4096 Aug 4 01:41 resources
-rw-r--r--. 1 nginx nginx 26 Aug 4 01:41 robots.txt
-rw-r--r--. 1 nginx nginx 2452 Aug 4 01:41 status.php
drwxr-xr-x. 3 nginx nginx 4096 Aug 4 01:41 themes
drwxr-xr-x. 2 nginx nginx 4096 Aug 4 01:42 updater
-rw-r--r--. 1 nginx nginx 402 Aug 4 01:44 version.php
ls -l /var/www/nextcloud/config
total 60
-rw-r--r--. 1 nginx nginx     0 Aug  4 01:41 CAN_INSTALL
-rw-r--r--. 1 nginx nginx 60432 Aug  4 01:41 config.sample.php
The nginx and php-fpm processes are both running as the nginx user, so I'm not totally sure what's going on here. If anyone can point me in the right direction, that would be helpful.
Subreddit
Post Details
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/NextCloud/c...