Running: Ubuntu Lucid, Lamp, and WordPress (most recent versions)
Directory structure: /srv/www/mydomain.name/public_html
Here are my priorities and goals.
1. Security
2. Allow Wordpress to write to public_html
3. Allow MyUser to write to public_html
4. Do not allow www-data\apache to write to public_html
The problem I am having trouble wrapping my head around is that WordPress uses www-data\apache for permission to write to certain files and directories. Obviously, allowing www-data to write to public_html is a security risk, but only allowing MyUser to write to public_html takes permissions away from Wordpress. Right now my directories are 755 and files are 644.
Is this a caveat of using /srv/www instead of /home/MyUser? I did find this link that explains my problem better but I'm apprehensive to apply the solution as I don't understand it and from a security standpoint, I don't try a idea unless I understand exactly what it does.
http://www.nerdgrind.com/wordpress-automatic-upgrade-plugin-failed-or-not-working/
Any ideas on this one? Thanks in advance.