title: move_uploaded_file gives: failed to open stream: Permission denied
body: <p>I am working with two different servers, and uploading files between them. From one to another. But that is not working. It worked when both are on my localhost, but when I want to upload file from my localhost onto another server that is a cloud server. It is giving me this error:</p>
  
  <pre><code>Warning:  move_uploaded_file(/var/www/data/user-blue.png): failed to open stream: 
  
  Permission denied in /var/www/upload.php on line 67
  
  
  
  Warning:  move_uploaded_file(): Unable to move '/tmp/phpVBiLvB' to '/var/www/data/user-blue.png' in /var/www/upload.php on line 67
  </code></pre>
  
  <p>How do I fix permissions on the cloud server? I have full root access if it is needed.</p>