If you have setup permissions and you can access certain files, especially ones you created on the server itself, but not ones you downloaded (for ex) then it's most probably the file type that is wrong. This then stops apache from reading the file so all you have to do is change the type if your web folder is /var/www/html you can run the following command to recursively fix the issue.
-R : (recursive) -t : (change type) httpd_sys_content_t : File type:
chcon -R -t httpd_sys_content_t /var/www/html/
This I've only experienced on Red Hat (Fedora)
By PHPin24 @ 2009-08-02 17:47:16
|