Q: 10
A Linux systems administrator is setting up a new web server and getting 404 - NOT FOUND errors
while trying to access the web server pages from the browser. While working on the diagnosis of this
issue, the Linux systems administrator executes the following commands:
Which of the following commands will BEST resolve this issue?
Options
Discussion
Option B
Option B not 100% sure. Seen similar questions in practice, this looks like a context issue. Can someone confirm?
B . If the files in
/var/www/html have the wrong SELinux context, restorecon fixes it so Apache can serve them. No need to weaken security with A or C, and D is unrelated to file access issues (that's more about DB connections). Pretty sure B is safest unless I missed something.Seen similar in official practice exams and study guides, pretty sure B is what they want here. Worth double checking labs though.
B
B
Pretty common in practice exams, official guide points to B for fixing SELinux context on web files.
C or B? I get why people pick C since setenforce 0 disables SELinux and the site would probably load, but that's more of a temp workaround and not really secure. Pretty sure the exam wants B because restorecon actually fixes the SELinux context for /var/www/html without killing protection. C is a trap if they want the BEST solution. Someone else seeing it different?
C or B for me. Disabling SELinux temporarily using setenforce 0 (C) often gets rid of 404 errors for web servers when it's a context issue, so I've seen that as a quick fix in labs and some official practice test scenarios. The study guide pushes for restoring the context (B), but C feels like it would work fast too, just not persistent. I think C is valid from a troubleshooting perspective, maybe not BEST. Anyone disagree?
B , similar questions pop up in the official study guide and labs.
Be respectful. No spam.