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:

Jutta
10 minutes 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
9 days ago
Hmm, that makes sense too. Let's see what others think before making a final decision.
upvoted 0 times
...
Reta
13 days 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
13 days 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
16 days 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