move_file_uploaded permission denied on chmod 777 directory?
<p>I can't seem to get uploads to work, so I changed the upload directory to be the log directory.  Note that the logs are being successfully written to, but I still cannot upload a file into that directory.</p>

<p>ls -lh</p>

<pre><code>drwxrwxr--  2 &lt;user&gt; http 216 Aug  2 10:19 logs
</code></pre>

<p>I've checked the path by copying it directly from the error message, pasting it into the terminal, and cd'ing to it.  It's an absolute path name.</p>

<p>I've done a whoami on the script and it's reported back as http.</p>

<p>This is in a virtualhost directory using Apache with mod_php.  PHP version 5.4.4, using Arch Linux.</p>

<p>Any ideas?  I'm completely at a loss as to what I should check next.  I even did a touch  to create the file first, and I'm still getting the error.</p>

<p>I should also mention that the parent directory has the sticky bit set for the group.  I don't know if that would affect anything or not.</p>

<p>Here's the actual error message:</p>

<pre><code>&lt;b&gt;Warning&lt;/b&gt;:  move_uploaded_file(!!snip!!): failed to open stream: Permission denied in &lt;b&gt;!!snip!!&lt;/b&gt; on line &lt;b&gt;29&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Warning&lt;/b&gt;:  move_uploaded_file(): Unable to move '/tmp/phpYSMakQ' to '!!snip!!' in &lt;b&gt;!!snip!!&lt;/b&gt; on line &lt;b&gt;29&lt;/b&gt;&lt;br /&gt;
</code></pre>
