I'm struggling to get a directory to work with user:group.
After creating the directory via WHM I've logged in via SSH and set:
chgrp -R developers mysitedirectory
Which results in a 500 internal server error.
I've also added the Cpanel user for this website to the developers group using usermod:
usermod -a -G developers Cpanel_user
Any help to get this directory working with read & write permissions for everyone in the group would be greatly appreciated.
Edit
The directory is in /home and is generated when adding a new account to WHM / Cpanel
The directory contains website files, the site works fine when set to user:user but throws 500 error when using user:developers
User is also a part of developers
EDIT 2
Error log shows:
Premature end of script headers: index.php
SoftException in Application.cpp:422: Mismatch between target UID (99) and UID (502) of file “/home/xxxxxxxx/public_html/index.php
folders are set to chmod 755 and files to chmod 644