title: Wordpress The uploaded file could not be moved to wp-content/uploads
body: <p>So I have a pretty standard Wordpress site setup, however when trying to upload a photo I get an error saying </p>
  
  <blockquote>
    <p>The uploaded file could not be moved to wp-content/uploads.</p>
  </blockquote>
  
  <p>I'm running nginx and the user is nginx, I have the user and group of the directory set to nginx. </p>
  
  <p>the directory and all sub-directories is set to 755, and still this error comes up, so i changed the directory permission to 777 to test and still the error pops up. </p>
  
  <p>Obviously this is bad practice and should never be used but i was curious if maybe the user was wrong. I'm running CentOS 6.7</p>
  
  <p>Just for notes the directory is /usr/share/nginx/site/wordpress/wp-content/uploads</p>
  
  <p>please don't comment saying anything about changing the directory to 777.</p>