Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

2
Permissions issue on installation
Post Body

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:

https://preview.redd.it/dvbvy3e9kkn71.png?width=737&format=png&auto=webp&s=1978dae580bb5072e33370b3b60d53cd083bc3d9

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.

Author
Account Strength
100%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
7,790
Link Karma
1,339
Comment Karma
6,258
Profile updated: 1 day ago
Posts updated: 1 week ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago