When the server has SELinux enabled, I can't even change the location of DocumentRoot. It kept giving me error about "DocumentRoot /var/www/newdir/html does not exist".
This is because the SELinux policy will deny httpd access to any unlabelled files by default.
Instead of disabling SELinux, we could try toggle the SELinux rule settings.
To see all SELinux values, do:
root# getsebool -a
To see all the apache related SELinux boolean values, do:
root# getsebool -a | grep httpd
Recent comments
2 weeks 5 days ago
3 weeks 6 days ago
7 weeks 3 days ago
32 weeks 4 days ago
33 weeks 3 days ago
44 weeks 3 days ago
45 weeks 5 days ago
1 year 2 weeks ago
1 year 2 weeks ago
1 year 3 weeks ago