0

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??

2
  • 1
    Post the netstat output. Firefox doesn't listen on common ports.
    – Magellan
    Oct 3, 2012 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? Oct 3, 2012 at 5:16

2 Answers 2

2

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

1
1

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.

1
  • But I didn't use httpd.conf, I just changed the files listed on the tutorial I followed...
    – poz2k4444
    Oct 3, 2012 at 3:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .