move_uploaded_file gives “failed to open stream: Permission denied” error
This is because images and tmp_file_upload are only writable by root user. For upload to work we need to make the owner of those folders same as httpd process owner OR make them globally writable (bad practice). Check apache process owner: $ps aux | grep httpd. The first column will be the owner typically it … Read more