Friday, September 26, 2014

Installing Apache along with IIS server on same machine and solution to OS 10013

To install Apache server you need to download the latest vesrion of apache server from here.
While installing Apache on the machine you may face the following issues i.e. 
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

This issue occured when some other application is already listening to default port ( Port 80 )

To see which process is listening to the 80 Port use can use command prompt
  •  Start -> cmd Or win+R cmd
Now in the command prompt execute the following command
NetStat -ao
It will show the list of local addresses and the process ids that ware listening to the address as shown below:

Now  you can figure out the process by PID from the windows task manager as :  but you have to enable the PID column before that

This error mailnly occurs when Skype is running on you machine or IIS is already configured on you machine
in case of IIS you have to execute following commands in the command prompt to stop "World Wide Web Publishing service"  and "Web Deployment Agent service " 
  •  NET STOP MsDepSvc
  •  NET STOP W3Svc

To Turn off Skype! (Since it uses the same port (80) as Apache and will thus block the installation process)
Go to Skype Tools Options
In the Left side menu you will find Advanced - > Connection and uncheck the "use port 80 and 443 as an alternatives for incoming connections."


Post a Comment