title: How to grant both Git and Apache permissions to /var/www
body: <blockquote>
    <p>I am attempting to install wp-deploy. After reinstalling Mint three
    times and nearly burning down my house with my rage I cannot for the
    life of me figure out how I am supposed to give <code>/var/www</code> the right
    permissions.</p>
    
    <p>I get a permission denied, if git attempts to write which will be
    happening semi-frequently with capistrano/wp-deploy.</p>
    
    <p>But if I <code>chown</code> the directory I break apache.</p>
    
    <p><code>drwxrwxr-x 2 www-data www</code> is the current permissions where <code>www</code> is
    a group. Some tutorial told me to make that contains the www-data user
    and another user, but it didnt seem to change the behaviors. I have
    also had this at <code>www-data:root</code> and <code>www-data:www-data</code> all with the
    same behaviors.</p>
  </blockquote>
  
  <p>UPDATE:  Still a mess, updated and then realized some mistakes. I'll probably be back with more info soon. Thanks for the help.</p>