There are hundreds of questions about it, but I'm still stuck with this problem and looking for a proper solution.
The newest solution (mine) fix just the reading issues, it doesn't solve the writing permission issues. If possible, I want to reach a proper and stable solution that doesn't involve recursively fixing the permissions of each directory each new project I have.
I'm sure there is a solution to gives the
_www user enough permissions for reading and writing files.