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.

I've installed apache2 and then configured it to work with SSL following this and this tutorials, the problem becomes when I try to restart the service, I get the following error:

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

the output of netstat -anp | grep 443 just display firefox listening and anything else, how could I solve this and get the service running??

share|improve this question
1  
Post the netstat output. Firefox doesn't listen on common ports. –  Magellan Oct 3 '12 at 2:58
    
For -p to be effective, netstat needs to run as root or the service in question. Did you run netstat with root privileges? –  Jeff Ferland Oct 3 '12 at 5:16
add comment

2 Answers

up vote 2 down vote accepted

This is caused when there is other service running on this port 443. We have to check what is the service running on it and shutdown and then restart the apache. To check what service running on port 443 use below command

nmap localhost

share|improve this answer
1  
You're not the first to go in that direction. The right answer is lsof or netstat. See serverfault.com/questions/357323/… for more details and the right flags. –  Jeff Ferland Oct 3 '12 at 5:13
add comment

I assume firefox is connected to some other web site on port 443, although you could close it anyway to avoid confusion.

So if there are no other processes listening to port 443, the most likely explanation is that you have accidentally configured apache to listen to port 443 more than once (perhaps once with a specific IP address, and once without, hence the 0.0.0.0) so that when apache starts, the first bind attempt succeeds but the second fails.

Check for LISTEN directives in httpd.conf and any files that are INCLUDEd by httpd.conf.

share|improve this answer
    
But I didn't use httpd.conf, I just changed the files listed on the tutorial I followed... –  poz2k4444 Oct 3 '12 at 3:13
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.