title: Can't edit files in '/var/www/' - Already followed a lot of tutorials
body: <p>I'm trying to edit a PHP open source project, and I put it in /var/www to view the updates in real time using localhost. It works, but when I try to update one file of the project in <code>Sublime Text</code> I receive the following error:</p>
  
  <pre><code>Unable to save /var/www/howtoelementaryos/global.php
  Error: unable to create tmp file in /var/www/howtoelementaryos
  </code></pre>
  
  <p>I want know what I can do to solve this problem, because I already followed these tutorials:</p>
  
  <ol>
  <li><a href="https://superuser.com/questions/378412/editing-files-in-var-www">https://superuser.com/questions/378412/editing-files-in-var-www</a></li>
  <li><a href="https://stackoverflow.com/questions/12077605/git-unable-to-create-file-permission-denied">Git unable to create file permission denied</a></li>
  <li><a href="https://askubuntu.com/questions/348427/cant-save-files-in-var-www-using-lamp-installed-with-tasksel">https://askubuntu.com/questions/348427/cant-save-files-in-var-www-using-lamp-installed-with-tasksel</a></li>
  <li><a href="https://stackoverflow.com/questions/13146992/fatal-unable-to-create-temporary-file-home-username-git-myrepo-git-objects">fatal: Unable to create temporary file &#39;/home/username/git/myrepo.git/./objects/pack/tmp_pack_XXXXXX&#39;: Permission denied</a></li>
  </ol>
  
  <p>And none of these helped me. <strong>Summarizing, what I can do to solve this issue?</strong></p>
  
  <h2>Edit:</h2>
  
  <p><strong>stat /var/www:</strong></p>
  
  <pre><code>  File: `/var/www'
    Size: 4096        Blocks: 8          IO Block: 4096   directory
  Device: 806h/2054d  Inode: 4202729     Links: 4
  Access: (0777/drwxrwxrwx)  Uid: (   33/www-data)   Gid: (   33/www-data)
  Access: 2013-10-28 10:33:02.827949771 -0200
  Modify: 2013-10-28 10:14:39.030751552 -0200
  Change: 2013-10-28 10:33:02.827949771 -0200
   Birth: -
  </code></pre>
  
  <p><strong>stat /var/www/howtoelementaryos:</strong></p>
  
  <pre><code>  File: `/var/www/howtoelementaryos'
    Size: 4096        Blocks: 8          IO Block: 4096   directory
  Device: 806h/2054d  Inode: 4195910     Links: 4
  Access: (0775/drwxrwxr-x)  Uid: (   33/www-data)   Gid: (   33/www-data)
  Access: 2013-10-28 10:33:35.244209685 -0200
  Modify: 2013-10-28 10:09:49.724196121 -0200
  Change: 2013-10-28 10:33:02.831949803 -0200
   Birth: -
  </code></pre>