1. Getting the following error when attempting to start Apache httpd:
httpd: Syntax error on line 88 of /etc/httpd/conf.d/file.conf permission denied
2. Checking file.conf context you get the following:
ls -lZ
-rw-r--r--. root root unconfined_u:object_r:user_home_t:s0 file.conf
3. Fix the context using the following commnads:
semanage fcontext -a -t httpd_config_t file.conf
restorecon -v file.conf
4. Context is fine now and httpd starts properly:
-rw-r--r--. root root unconfined_u:object_r:httpd_config_t:s0 file.conf
No comments:
Post a Comment