File ownership for file tree php user ID – Folder permission 775

If, on your wp-content/uploads directory, 755 doesn’t work, but 775 does it means that the group example.com already contains the ‘php user id’, so you don’t need to do anything else.

More specifically, the web server process (like apache or nginx) both serves your files and runs PHP, so ‘php user id’ really means (is the same as) the web server user ID. It has its own user and group just like you have a user and group. If 775 makes things work it means that the web server process is in the example.com group.

Does that help?