Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache wont deliver pages

Status
Not open for further replies.

crvoss

Programmer
May 2, 2005
21
US
I have installed apache to my laptop (running XP home) but cannot seem to get apache to deliver pages using I have placed some HTML pages in htdocs and changed the listen port (Listen 80) to various values with no luck (though it changes the error message I get). The apache service shows to be started and I have restarted it between every config modification. I have read many of the messages on this site trying to determine what to do. Can anyone help me with this?

When using Listen 80 or Listen *:80
The browser eventually times out after an extemded period

When using Listen 8080 or Listen 3611 or Listen 127.0.0.1:80
The browser responds with "unable to connect
 
Do your error logs give any clues? You shouldn't have to change the port. By default apache listens for all addresses on port 80. If you change the port, then you need to include it in the url. For example What are you using as the ServerName? If you don't have it defined or have it commented out, apache will still start but should complain that it can't find its fully qualified domain name and that it will use its ip address as the ServerName. This brings up an important point. The ip address needs to be static for this to work. The best thing is to use localhost as the ServerName.
 
Thanks for your reply. Everything seems fine in the logs. I have shut it down several times and the shutdown looks good and the start up looks good also.
 
Are you shutting down the computer or the service? The reason I ask is because I'm wondering if there is more than one instance of apache trying to start. It could be that something else already has dibs on port 80. In most cases it turns out to be P2P software or another web server.

 
I shut down apache and did a netstat -ano and there were no processes accessing port 80. Then I started apache and did another netstat -ano. That gave me one process listening on port 80. I then launched Firefox and type in the URL which it did not find anything. I then did another netstat -ano and it showed one process listening (I assume to be apache) and two process listed as established. One with a foreign address of 127.0.0.1:1140 and the other with a foreign address of 127.0.0.1:80. I dont know how to interpret that since I dont know how to find out what program it is talking about. It lists the PID but I don't know how to find out which program it is. Can you help me there?
 
the -b switch added to the netstat command will give you the executable name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top