IIS

Windows Server Apache: An attempt was made to access a socket in a way forbidden

 

Issue:
You have an apache server installed on Windows server 2003 alongside IIS. You have apache bound to one IP and IIS sites to the other. You try to start apache and get this error in the event log:
The Apache service named reported the following error:
>>> (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : make_sock: could not bind to address 192.168.1.5:443
Resolution:
When IIS starts it is binding to all IP Address to fix this you need to force IIS to bind to only the IP address/s you want:
  1. Install the SUPTOOLS.MSI, you can find this on the Windows server 2003 CD -> Support -> Tools
  2. Click start -> run
  3. Type cmd
  4. Type the following, replace the IP address where appropriate: httpcfg set iplisten -i 192.168.1.5. If all goes well you should see HttpSetServiceConfiguration completed with 0
  5. Use the following command to list the IP Address: httpcfg query iplisten. You should see IP: 192.168.1.5
  6. Stop the HTTP service and its dependent services: net stop http /y
  7. Start the HTTP service and its dependent services: net start w3svc
References:
Syndicate content