LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   httpd restart error (https://www.linuxquestions.org/questions/linux-general-1/httpd-restart-error-422333/)

sandeshshrestha 03-06-2006 10:04 PM

httpd restart error
 
when i restart httpd remotely from ssh it gives following error can some body help me
[root@sandesh ]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
[FAILED]
can someone help me

Capt_Caveman 03-06-2006 10:37 PM

Usually those errors are associated with already having an instance of the service (or some other daemon) running on that port. Check the output of netstat -pantu and see if anything is already listening on port 80 or 443.

Also does 'apachectl startssl' work?

alejandroye 03-26-2006 08:35 PM

hi

I am having the same error,

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

and I got from
# netstat -pantu

this

tcp 0 0 :::80 :::* LISTEN 8378/httpd2
tcp 0 0 :::6000 :::* LISTEN 4221/X
tcp 0 0 :::22 :::* LISTEN 4251/sshd
tcp 0 0 :::443 :::* LISTEN 8378/httpd2

so, what this mean?, and what I have to do now?

any help about this


thanks in advantage

Capt_Caveman 03-26-2006 11:50 PM

You already have an instance of the http daemon listening on that port:

tcp 0 0 :::80 :::* LISTEN 8378/httpd2<---
tcp 0 0 :::6000 :::* LISTEN 4221/X
tcp 0 0 :::22 :::* LISTEN 4251/sshd
tcp 0 0 :::443 :::* LISTEN 8378/httpd2<---

You can either kill the httpd2 process (killall httpd2) or "restart" the service using: service http restart (may not work on mandrake though).

alejandroye 03-27-2006 07:09 AM

thank you, now it back to work normal


All times are GMT -5. The time now is 05:54 AM.