nerdexam
CompTIA

XK0-005 · Question #1594

After starting an Apache web server, the administrator receives the following error: Which of the following commands should the administrator use to further troubleshoot this issue?

The correct answer is A. ss. The ss (socket statistics) command displays all active network connections, listening ports, and their associated processes. When Apache fails to start, a common cause is a port conflict - another process is already bound to port 80 or 443. Running ss -tlnp reveals which ports…

Troubleshooting

Question

After starting an Apache web server, the administrator receives the following error: Which of the following commands should the administrator use to further troubleshoot this issue?

Options

  • Ass
  • Bip
  • Cdig
  • Dnc

How the community answered

(39 responses)
  • A
    82% (32)
  • B
    3% (1)
  • C
    10% (4)
  • D
    5% (2)

Explanation

The ss (socket statistics) command displays all active network connections, listening ports, and their associated processes. When Apache fails to start, a common cause is a port conflict - another process is already bound to port 80 or 443. Running ss -tlnp reveals which ports are in use and which PIDs/processes hold them, directly identifying the conflict. ip (B) manages network interfaces and routing but does not show port usage. dig (C) performs DNS lookups, unrelated to local port conflicts. nc (D) can test connectivity but is not the right tool for discovering which local processes are occupying specific ports.

Topics

#Troubleshooting#Networking#ss command#Web server management

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice