Quantcast
Channel: Admins Goodies » service
Viewing all articles
Browse latest Browse all 10

Service httpd restart error

$
0
0

Question

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

Asked by user131274

Answer

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

Answered by Valentin0S

Viewing all articles
Browse latest Browse all 10

Trending Articles