Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Why do i always get the error when ever i reset my httpd:

Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

Everytime i have to use sudo fuser -k -n tcp 80(i dunt know what it does) and then it works.. How can i solve this issue permanently?

using CentOS 6.3

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

1) look for open files which might use port 80

lsof -i :80

2) check your apache.conf / httpd.conf for the directive Listen

3) Check the /var/log/httpd/error.log

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.