Apache (xamp) and IIS cannot work together

I have XAMP 1.6.8 and IIS 5.0 installed on my PC (Windows XP SP3).

I can not run them at the same time. If IIS is running, Apache throws the following error:

(OS 10048) Usually only one use of each socket address is allowed (protocol / network address / port) .: make_sock: could not bind to address 0.0.0.0:80, there are no available sockets for listening, shutdown Logs cannot be opened. Pay attention to the above errors or messages and press the key to exit. 24 ...

Windows failed to start Apache2 on the local computer. See the system event log for more information. If this is a service other than Microsoft, contact your service provider and refer to error code 1 for the specific service.




Edit:

Apache runs on a different port 3128. And IIS (asp.net) usually runs on a different port.

0
apache iis apache2 xampp
Jan 10 '09 at 14:38
source share
3 answers

"cannot bind to address 0.0.0.0:80" means that at startup it tries to bind to port 80 on all available network interfaces. Since IIS has already hooked up one (or more) IP addresses to bind to it, apache cannot get any, and therefore will work.

(I'm not sure if it will bind to any available IP addresses if you configured it to bind to all, but one is already done.)

So, configure Apache to bind to a different port (if you only have 1 IP address) or to bind to a different IP or IP range.

You do this by changing the binding . First, find the Listen directive in the configuration file (httpd.conf) and modify it. He will now say "Listen 80" (which means all IP addresses), change it to say β€œ Listen 192.168.0.2:80 ” so that it binds to the specified IP address.

You may need to edit the IIS configuration to tell it that it is bound to only one IP address.

+5
Jan 10 '09 at 14:56
source share

You need to configure Apache or IIS to listen on a different port.

You can also use tcpview to check which ports are used by applications, as this seems like a conflict.

+5
Jan 10 '09 at 14:42
source share

If you don’t click the arrow in the center of the circle, click the arrow, and then draw a circle around it. - I tried everything that I advised you, deleted Skype, did not start IIS, added the Apache program to the antivirus, but this did not solve the program

Finally, I changed the apas port from 80 to 82, look for Listen 80 in httpd.conf and change this

+1
Jan 24 '14 at 23:03
source share



All Articles