Check and set the SELinux security label of the files
ls -Z sudo chcon -Rv --type=httpd_sys_content_t folder/