Chris Devers wrote:


Ok, that changes things.

So then, this is Apache? Running on ...Linux? OSX? Windows? Other?


Linux Mandrake 9.1 on an IBM laptop with multiple boot options (e.g. Windows 2000 a.k.a. NT 5).


The first thing to do is figure out if your web server is up, running, listening, and responding. If you're sure that the server process is running -- and knowing the server & operating system will help a lot in steering you along here -- then there are various ways you can try to figure out if the server is actually listening.


If you're on an operating system with a command line, try this (the lines you type will have a "->" prefix):

-> telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

This sort of worked, everything shown appeared, but I was NOT back at the command line. Using ^] the prompt became telnet>


Trying GIBBERISH:

telnet> GIBBERISH
?Invalid command

Going back to the original command prompt just said "GIBBERISH" was not a bash command. Hence, it seems the server is there and listening on the port, but it other ways is not acting in the manner you expected. Does this help to give some clue what is missing? Oh, yes I see one thing - the apache server I am using is 1.3.31 the most recent stable release for the 1.x series. But looking at your results listing, I cannot believe that is the explanation for the difference.

Have any suggestions why I am not seeing the prompt upon issuing the telnet localhost 8080? I tired a few variations and so far nothing seems to generate anything other than the "?invalid command" seen above.


-> GIBBERISH
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>501 Method Not Implemented</TITLE>
</HEAD><BODY>
<H1>Method Not Implemented</H1>
GIBBERISH to / not supported.<P>
Invalid method in request GIBBERISH<P>
<HR>
<ADDRESS>Apache/1.3.29 Server at shabadoo.revahertz.com Port 8080</ADDRESS>
</BODY></HTML>
Connection closed by foreign host.


If you do the `telnet locahost $port`, you should be able to manually open up a conversation with your web server. Normally you'd want to issue an actual HTTP command here, but we're just testing that the thing is even alive, so in this example I just typed "gibberish" and -- as expected -- I got an error that Apache doesn't know what to do with a "gibberish" request. That's okay though, because it confirms that Apache is alive and listening. We can go other directions once we know that.






-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to