How to configure apache to create files with correct group owner [closed]

You may as I have found need to change the group that apache runs under. In ubuntu you can do this by editing the /etc/apache2/envvars file.

The above answer by AlxVallejo is mostly correct but this (Tom’s) is a better answer with regards to setting permissions
https://serverfault.com/questions/6895/whats-the-best-way-of-handling-permissions-for-apache2s-user-www-data-in-var

Also I found that even when you do all that, because WordPress is rather dumb on how it checks permissions adding these lines to the end of wp-config.php helps resolve plugin and auto-update hiccups:

/* Force direct file updating
 - http://www.charleshooper.net/blog/wordpress-auto-upgrade-and-dumb-permissions/
*/
define('FS_METHOD', 'direct');

See the link for more info.

Hope that helps.