Hi,
I’m trying to setup nextcloud on ODROID C2, I’m using how to from here; https://www.c-rieger.de/
I did installation 3 times already but always end on the same error. Im using fresh minimal debian jessie server.
Complete install went fine no errors. But when I try to reach nextcloud WEB page i get Bad Gateway error; Nginx error.log shows permission problems, but cant figure it out why;
here is the log;
2016/08/13 15:57:20 [crit] 2158#2158: *1 connect() to unix:/run/php/php7.0-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 10.0.0.1, server: XXX.asuscomm.com, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: "XXX.asuscomm.com"
2016/08/13 15:57:20 [crit] 2158#2158: *1 stat() “/var/www/nextcloud/favicon.ico” failed (13: Permission denied), client: 10.0.0.1, server: XXX.asuscomm.com, request: “GET /favicon.ico HTTP/1.1”, host: “XXX.asuscomm.com”, referrer: “http://XXX.asuscomm.com/”
I’m able to access the page without 502 error if i change nginx user to www-data, but this is not proper way to do it.
Folder permissions;
root@DietPi:/var/www# ls -la
total 16
drwxr-xr-x 4 www-data www-data 4096 Aug 13 14:30 .
drwxr-xr-x 13 root root 4096 Aug 13 14:30 …
drwxr-xr-x 2 www-data www-data 4096 Aug 13 14:30 letsencrypt
drwxr-x— 15 www-data www-data 4096 Aug 13 15:39 nextcloud
Any suggestion what to check would be welcome.
Thanks,