james clarke
james clarke

Reputation: 243

XAMPP apache cannot connect to listening port

I am using xampp on windows 10 and trying to get apache to work. I have set it to listen to port 50563 in the httpd.conf and httpd-ssl.conf, however when I run httpd.exe I get this message:

(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : AH00072: make_sock: could not bind to address [::]:50563

(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:50563

AH00451: no listening sockets available, shutting down

AH00015: Unable to open logs

I have tried running as administrator, I check netstat and that port is free. What should I do?

httpd.conf: https://pastebin.com/NUrWBfRB httpd-ssl.conf https://pastebin.com/YLLfzEjP

Upvotes: 0

Views: 2605

Answers (1)

Gabriel Avellaneda
Gabriel Avellaneda

Reputation: 742

Probably you are trying to listen on 50563 for both http and https? If this is the case you MUST use different ports, maybe use 50563 and 50564 for HTTP and HTTPS respectively.

In the case of multiple Listen directives, Apache will bind to port 80 the first time and then try to bind to port 80 a second time. This yields a nice "Could not bind to port" error on start up. This seems to happen with newbies and Debian based distros, where Debian based distros have Listen 80 defined in ports.conf. Newbies don't realize this and create another Listen 80 line in *.conf.

From: https://wiki.apache.org/httpd/CommonMisconfigurations

Upvotes: 1

Related Questions