Whenever a file is uploaded to a specific user’s public_html directory, the group name for that file is incorrect; it shows up as another username for the group.
So for example, instead of this:
filename.jpg user: rightUser | group: rightUser
I get this:
filename.jpg user: rightUser | group: anotherUser
To get an idea of what I’m experiencing, see the the following link, but I’m not sure if the solution posted there is the right one for me.
So after going into the PHP-FPM configuration file for the virtual host in question, ‘group’ and ‘listen.group’ was set to another virtual host.
It was like this:
user = site_1
group = site_3
listen.owner = site_1
listen.group = site_3
I edited the config file as follows:
user = site_1
group = site_1
listen.owner = site_1
listen.group = site_1
Then restarted PHP-FPM and attempted to upload a file, then went to check if the group name was correct for the uploaded file, and this time it was. I’m not sure why or how though the group names in the config file was altered/changed to another virtual host to begin with.