Hello
I was having permission issues uploading files to a website, then I tested another website and it had the same problem.
After some searching and testing, I found out that it's because of this folder not having the ownership set as nobody:root since nginx uses the user called "nobody"
The /var/lib/nginx folder had permission nginx:root <-- Not ok
All subfolders had nobody:root <-- ok
I checked my test server and it had the same values.
I did this: chown nobody -R /var/lib/nginx/
and then restarted nginx and then uploads works fine again.
At what point does the ownership of /var/lib/nginx/ change?
If you are running nginx->varninsh->apache->php setup, can you please post here the value of
ls -all /var/lib/nginx/