title: PHP Photo Uploads - upload_tmp_dir permissions
body: <p>I'm using the following directory for php.ini photo uploads on apache - redhat/AWS</p>
  
  <pre><code>drwxrwxr-x  2 user2 user2 4096 Mar  4 08:10 datingPhotoUploads
  </code></pre>
  
  <p>Apache is running as the user 'apache'.</p>
  
  <p>How can I give this folder permissions so the user 'apache' can write to it but otherwise its as secure as possible?</p>
  
  <p>thankyou</p>