I was having a problem with my apache web server. The service was running fine and yet when I entered address http://localhost/ I was getting a page not found message. I checked the error log in c:\program files\apache group\apache\logs and could find no error. Stoping and starting the apache service would sometimes fix the problem. So what was causing the problem?
Every process (program and background service) that provides a network service has a port number associated with it. There are standard port numbers for different services. The standard port number for web servers is port 80.
To get a list of network programs that are running , start a command prompt by selecting run and choosing cmd. In the command prompt type
netstat -pa
This will list all the processes , their port number and PID (Process ID). The results were as following:

Top of this list is
Proto, Local Address, Foreign Address, State ,PID
TCP,main:http, main:0, Listening, 2012
TCP, main:http, main:0, Listening, 1596
Clearly there are two programs using port 80 (http). Only one program can use a port at the same time. Therefore there is a clash between these two programs which explains why the server is not working.
To find out which programs are trying to use port 80. Press Control, Alt and Delete you should get task manager. In task manager select view from the task menu and choose select columns. Tick the PID column and press OK. Select the processes tab and find the PIDs that match those given by netstat. In this case, 2012 and 1596. As it turns out
1596=Apache.exe
2012= Skype.exe
So both apache and Skpye are trying to use port 80/ Behave as webservers.
How to turn off the http port on skype
In skype choose options from the tools menu. Click on the advanced button and then the connection button. Untick port use port 80 and press the save button.
Stop and restart skype. run netstat -oa again . This time only one process should be listening on the http port. Restart the system to make sure it is now working.
