Windows – Apache config: “no listening sockets available”

apache-2.2windows

I'm trying to configure apache2 (it's configured inside Enfinity Suite), but something seems to go wrong with the configuration.

If I set:

Listen 86

It says:

(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted.: make_sock: could not bind to address 0.0.0.0:86 no listening sockets available, shutting down

If I set:

Listen 127.0.0.1:86

It says:

(OS 10013) An attempt was made to access a socet in a way forbidden by its access pemissions. :make_sock: could not bind to address 127.0.0.1:86 no listening sockets available, shutting down

If I set a port higher than 450, lets say Listen 127.0.0.1:8080, it says:

(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted.: make_sock: could not bind to address 0.0.0.0:450 no listening sockets available, shutting down

Can someone please clarify what's going on? (Some Windows policies?)

Best Answer

Probably your apache process will run with an effective user different than the user starting it. Make sure, that the user starting it has the permission to create listening sockets (for ports <1024 this should only be root). Also make sure, that the port you want to use is not already taken (with netstat -an ).

It don't have a clue about the difference of the error messages.

Related Topic