//Create new group
$ sudo addgroup webdev
//Change the group of your web directory:
$ sudo chgrp -R webdev /var/www/
$ sudo chmod -R g+rw /var/www/
//Set the guid bit on all folders in your web directory:
$ sudo find /var/www -type d -exec chmod +s {} \;
//Add Apache to the webdev group:
$ sudo usermod -a -G webdev www-data
//Add your user to the webdev group:
$ sudo usermod -a -G webdev <user_name>
Hopefully this helps someone