I have two files of interest in /var/www/html (in CentOS): index1.html, and index2.html.
index1.html was downloaded from a website and chowned to root and chmoded 0644. index2.html was created by root, and had the contents of index1.html copied into it. They have identical contents, and identical permissions. Apache will load index2.html, but will return a 403 Forbidden error for index1.html. If I swap the filenames, the permissions problem follows with the rename. What's going on?
[root@localhost html]# ls -al
total 52
drwxr-xr-x. 6 root root 4096 Jul 8 13:32 .
drwxr-xr-x. 6 root root 4096 Jul 8 12:59 ..
drw-r--r--. 2 root root 4096 Jun 26 12:14 css
-rw-r--r--. 1 root root 1558 Jul 8 11:42 dashboard.css
drw-r--r--. 2 root root 4096 Jun 26 12:14 fonts
-rw-r--r--. 1 root root 8744 Jul 8 13:12 index1.html
-rw-r--r--. 1 root root 8744 Jul 8 11:42 index2.html
drw-r--r--. 2 root root 4096 Jul 8 13:32 js
drw-r--r--. 4 root root 4096 Jun 21 18:39 PHP_Site
[root@localhost html]#
The rest of the files were downloaded and chowned/chmodded, and they also all return 403 errors. index2.html is the only file apache will load.
If I 'su apache' and cat the files, it can read all of them.
Try updating your file/folders context of your apache share.
SELinux is useful, dont turn it off unless you have to.