Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA Exam XK0-005 Topic 10 Question 9 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 9
Topic #: 10
[All XK0-005 Questions]

A Linux administrator encounters the following error in the Apache log files:

css

SQLSTATE[HY000] [2002] Permission denied

Which of the following commands should the administrator run to safely fix this issue?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Tiera
8 days ago
Wait, wait, wait... Did someone say 'permission denied'? I bet the admin just needs to run 'sudo' in front of whatever command they choose. Problem solved!
upvoted 0 times
...
Colton
10 days ago
Ah, I see the problem - the Apache content directory doesn't have the right SELinux context. Option A, 'chcon -c httpd_sys_content_t /home/apache', should do the trick.
upvoted 0 times
...
Markus
16 days ago
Hold up, I've got a good one - the admin should just do 'touch /.autorelabel' (option D) and let the system handle it. Easy peasy, right? Not sure if that's the best option, though.
upvoted 0 times
...
Jutta
19 days ago
Hmm, disabling SELinux enforcement with 'setenforce 0' (option C) seems like a quick fix, but it's not the most secure approach. I'd stick with B to keep things locked down.
upvoted 0 times
...
Sue
28 days ago
Hmm, that makes sense too. Let's see what others think before making a final decision.
upvoted 0 times
...
Reta
1 months ago
Whoa, looks like a permissions issue with the Apache server and the database connection. I'd go with option B, 'setsebool -F httpd_can_network_connect_db on' to safely enable the connection.
upvoted 0 times
...
Erasmo
1 months ago
I disagree, I believe the answer is B) setsebool -F httpd_can_network_connect_db on because it allows Apache to connect to a database.
upvoted 0 times
...
Sue
1 months ago
I think the correct answer is A) chcon -c httpd_sys_content_t /home/apache because it changes the security context of the file.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77
a