If you get the error “no listening sockets available, shutting down” when starting Apache, you may be missing the Listen directive in your httpd.conf.
When you try to start Apache you will get the errors below:
no listening sockets available, shutting down
Unable to open logs
You may just need to add this line towards the top of your httpd.conf:
Listen 80
You can also check to see if anything is listening on port 80 by using the lsof command.
root@localhost$ lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
httpd 13561 root 3u IPv6 19556426 TCP *:http (LISTEN)
httpd 13566 nobody 3u IPv6 19556426 TCP *:http (LISTEN)
httpd 13568 nobody 3u IPv6 19556426 TCP *:http (LISTEN)
httpd 13569 nobody 3u IPv6 19556426 TCP *:http (LISTEN)
httpd 13570 nobody 3u IPv6 19556426 TCP *:http (LISTEN)
httpd 13584 nobody 3u IPv6 19556426 TCP *:http (LISTEN)
httpd 13590 nobody 3u IPv6 19556426 TCP *:http (LISTEN)
httpd 13591 nobody 3u IPv6 19556426 TCP *:http (LISTEN)
httpd 13592 nobody 3u IPv6 19556426 TCP *:http (LISTEN)
httpd 13593 nobody 3u IPv6 19556426 TCP *:http (LISTEN)
httpd 13648 nobody 3u IPv6 19556426 TCP *:http (LISTEN)