I have setup up a Group that includes a few users (mygroup) then have set the owner of a web directory to be apache and the group to be mygroup.
chown -R apache:mygroup /home/myweb
Then I have set permissions to
chmod -R 764 /home/myweb
The idea being all can view, apache can read,write and execute and mygroup can read and write.
But now when I try and use ssh2 in php to create a folder in /home/myweb it doesn't work because of permissions.
The user ssh2 connects with is part of mygroup as is apache.
As far as I can tell I have the right settings.