I keep getting this error when I restart httpd:
DocumentRoot does not exist
What else can I do besides disable editing /etc/sysconfig/selinux to fix it?
|
|
Open /etc/selinux/targeted/booleans file using a text editor:
Append or modify value for httpd_disable_trans as follows:
Save and close the file. Type the following two commands:
PostInstallerF may help you You can take help from the following resources |
|||||||||||
|
|
Don't disable SELinux. That's just asking for trouble. As for solving the problem, I'm just going to quote myself here: It appears you've created a new directory outside the standard filesystem hierarchy to hold your web documents. When you do this, SELinux is not aware of your custom directory structure, and doesn't know that Apache (httpd) should have access to it. You will see messages in To actually fix the problem, you need to tell SELinux that Apache can access the directory. Do this using the semanage fcontext command:
The pattern matching is done with regular expressions, so this will match Then relabel the files:
SELinux will now permit Apache to access files in |
|||
|