Apache is complaining about not being able to access a file. Is there an easy way to find out what is blocking the access?
I know that I can go through the process of knowing which groups the user belongs to, checking permissions by doing an
ls -ld on every folder in the path to the file, and a final
ls -l on the file itself, but that's pretty tedious. Then there's also selinux and file ACLs that could also be in play.
I also know that I can change apache's login shell from
su - apache and
cd through the folders until I can't, but that is also tedious.
It's something that I do often and I suspect others do as well, so I assume there's something I'm missing that makes this easier.