3

I'm running Apache 2.4.10 on a Windows 7 machine and am trying to add SSL connections. Port 80 connections work fine, and I'm trying to add port 443. When the httpd.conf gets Listen 443 added it fails to start up:

c:\Apache24\bin> httpd.exe -k start
(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted.  : AH00072: make_sock: could not bind to address [::]:443
(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted.  : AH00072: make_sock: could not bind to address 0.0.0.0:443
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

A check using netstat at first revealed Chrome using port 443, so I quit Chrome and after the time out elapsed, the ports are now empty using netstat, but the server still fails to start when Listen 443 is present:

c:\Apache24\bin> netstat -ano | grep 443

How can I determine who is already on port 443 and blocking the Apache Server from using that port?

7

The issue appears to have been Apache conflicting with itself due to there being two Listen 443 directives, the one I added and one via include:

<IfModule ssl_module>
#Include conf/extra/httpd-ssl.conf
Include conf/extra/httpd-sni.conf
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

In the conf/extra/httpd-ssl.conf appears the conflicting line:

Listen 443 https

Dropping the Listen 443 I added resolved the issue.

  • I didn't realize sni include was redundent with ssl include. thanks for pointing that out. – danielson317 Oct 22 '14 at 17:19
  • Good one, informational .. – hagrawal Sep 10 '15 at 18:35
  • 1
    this worked for me too, i also added a Listen 443 thinking that it was needed but extra\httpd-ssl.conf already has it – Fernando Gabrieli Dec 19 '16 at 13:38
0

Tcpview from sysinternals shows all network related stuff, including which program is using the ports:

http://live.sysinternals.com
0

c:\Apache24\bin> netstat -ano | grep 443

will list all processId bind 443, like:

 TCP    xxx:xxx     xxx:443      ESTABLISHED     4332
 TCP    xxx:xxx     xxx:443      ESTABLISHED     7164

then execute:

c:\Apache24\bin> tasklist | grep -e "4332" -e "7164"

will list all process by Id. like:

MyPopo.exe                    4332 Console                    1     87,424 K
firefox.exe                   7164 Console                    1    522,576 K

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.