I have been told to chgrp and chmod (770 and g+s) the directory I need to be shared between the user 'apache' and the user that owns the website files.
When the owner creates new files in there, they have by default this permissions: 664, which isn't perfect, but it's ok.
The problem is that when apache (with a php script) creates new files in there, they have this permissions: 644.
Then the files created by apache are not writtable by the group. How do I fix that? I want it to be 664 by default, or 770.