apache

apache virtual hosts and SELinux

Fedora Core with SELinux means that there’s new things you need to be aware of when setting up a LAMP server. When adding virtual hosts to a server, make sure your new directories are accessible according to the SELinux policies. You can do that by checking:

ls -Z *

and then adding httpd access by doing

chcon -t httpd_sys_content_t YOURDIRECTORY

if httpd_sys_content_t isn’t already there.

Man, I spent something like 3 hours trying to figure out why that was happening.

|