HTTPD Fail to START

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vhoover
Posts: 123
Joined: Mon Sep 09, 2013 12:17 pm

HTTPD Fail to START

Post by vhoover »

the HTTP daemon won't start and as a result the nagios gui is unavailable. When attempting to start the daemon I receive the following error:

Code: Select all

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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: HTTPD Fail to START

Post by tmcdonald »

What command are you using to start the httpd daemon? Does a service httpd restart clear it? It definitely sounds like something is already taking port 80, possibly the httpd process is already running?
Former Nagios employee
vhoover
Posts: 123
Joined: Mon Sep 09, 2013 12:17 pm

Re: HTTPD Fail to START

Post by vhoover »

When attempting to clear it I get a failed message. Attached is the output from the service stop, start, restart, & the netstat command.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: HTTPD Fail to START

Post by tgriep »

Try and force httpd to stop by running the following.

Code: Select all

killall -9 httpd
After that, make sure the pid file is removed from the system. Run this to remove it.

Code: Select all

rm /var/run/httpd/httpd.pid
Then start httpd

Code: Select all

service httpd start
Take a look in the /var/log/httpd/error_log file if this fails.
Be sure to check out our Knowledgebase for helpful articles and solutions!
vhoover
Posts: 123
Joined: Mon Sep 09, 2013 12:17 pm

Re: HTTPD Fail to START

Post by vhoover »

That solved it, thanks. I will make note of this, should (knock on wood) happen again.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: HTTPD Fail to START

Post by tgriep »

That is good to hear. I'll close the post for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked