title: upload image to aws ec2 with php
body: <p>I'm trying to upload a file to a virtual machine in Amazon. and i have some questions.</p>
  
  <p>I think i have to give (777) permissions to my server folder to be able to upload my file. if i don't it won't work. is this ok?</p>
  
  <p>is it secure to give those permissions? </p>