Unable to edit files in _www group on OS X

Solution 1:

Adding your user to the _www group isn't enough: the files must be group-writeable for the members of the group _www to modify the files.

You should use the _www user (or sudo) to modify the permissions of the files, as so:

chmod -R g+w _www