Linux permissions are a 3-piece puzzle, you’re only mentioning one of the pieces.
- Permissions (like 755)
- User that owns the directories and files
- User that the process (in this case, the web server) is running under
Linux permissions are a 3-piece puzzle, you’re only mentioning one of the pieces.