January 2, 2012 by Al
Anyone who has ever set up a Red Hat or Fedora server during the last few years knows that in order for web pages to show up the SELINUX security system must be configured. It is easy enough to realize that the context for any path that is to include web pages (i.e., “user” directories) must be changed so that Apache can read them, but one thing you might forget to change is the context for the directory or directories where your cgi applications (including php scripts) are stored. If you don’t change that context then your scripts cannot be read. Seems obvious, but it is easy to overlook.
By the way, the command is: chcon -R -h -t httpd_sys_content_t /path/to/directory
Category Technology | Tags:
Sorry, comments are closed.