403 Forbidden Errors on Red Hat server
Try check the existing permissions on the file:
ls -l index.html
Fix them if necessary:
chmod 644 index.html
If all the standard permissions are correct and you still get a Permission Denied error
, you should check for extended-permissions. For example you can use the command setenforce 0
to turn off SELinux and check to see if the problem goes away. If so, ls -alZ
can be used to view SELinux permission and chcon
to fix them.
Eg:
sudo chcon -R -v -t httpd_sys_rw_content_t index.html