Hi, I suddenly can't access the omv website anymore, I just get a 403 forbidden. As far as I remember I didn't install or change anything on the machine omv is running. Though I ran an rsync backup and set the destination by mistake to / instead of . so the system drive was filled up. After deleting those files I got the 403. I checked the nginx omv error log which showed a lot of errors like this:
# tail /var/log/nginx/openmediavault-webgui_error.log
[error] 6616#6616: *1 "/var/www/openmediavault/index.php" is forbidden (13: Permission denied), client: 127.0.0.1, server: openmediavault-webgui, request: "HEAD / HTTP/1.1", host: "127.0.0.1:81"
I did chmod -R 755 /var/www/openmediavault and chmod -R 755 /var/www/which didn't help so I also did chown -R www-data:users /var/www/openmediavault/* and then chown -R www-data:www-data /var/www/openmediavault/* but that didn't solve it either. The permissions currently look like this:
# ls -al /var/www/openmediavault
total 76
drwxr-xr-x 8 www-data www-data 4096 Aug 10 14:11 .
drwxr-xr-x 4 root root 4096 Aug 10 14:11 ..
-rwxr-xr-x 1 www-data www-data 1265 Apr 8 09:25 404.php
drwxr-xr-x 2 www-data www-data 4096 Aug 10 14:11 css
-rwxr-xr-x 1 www-data www-data 2180 Apr 8 09:25 download.php
-rwxr-xr-x 1 www-data www-data 1406 Apr 8 09:25 favicon.ico
-rwxr-xr-x 1 www-data www-data 5262 Apr 8 09:25 favicon.svg
-rwxr-xr-x 1 www-data www-data 3317 Apr 8 09:25 favicon_180x180.png
drwxr-xr-x 2 www-data www-data 4096 Aug 10 14:11 fonts
drwxr-xr-x 2 www-data www-data 4096 Aug 10 14:11 images
-rwxr-xr-x 1 www-data www-data 1892 Apr 8 09:25 index.php
drwxr-xr-x 3 www-data www-data 4096 Aug 10 14:11 js
drwxr-xr-x 2 www-data www-data 4096 Aug 10 14:11 licenses
drwxr-xr-x 2 www-data www-data 4096 Aug 10 14:11 rpc
-rwxr-xr-x 1 www-data www-data 1925 Apr 8 09:25 rpc.php
-rwxr-xr-x 1 www-data www-data 2026 Apr 8 09:25 rrd.php
-rwxr-xr-x 1 www-data www-data 1702 Apr 8 09:25 shutdown.php
-rwxr-xr-x 1 www-data www-data 1850 Apr 8 09:25 upload.php
Alles anzeigen
I also did omv-firstaid and set the omv webport to 81 and disabled ssl without success. Before the rsync mistake it was successfully running on port 80 with ssl (using a self issued cert).
How can I set the permissions needed for nginx to work? Or what else could be the issue?