On Fri, 13 Aug 2004, hcohen2 wrote:

Chris Devers wrote:


Ok, that changes things.

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


Linux Mandrake 9.1

Ok, knowing that that makes things easier.

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>

If you got this far, you've verified that Apache is listening. You should not, however, exit back to the telnet shell at this point. As I tried to indicate, once you get past the "escape character" line, you should type in something. This will be transmitted to the server, and the server will respond accordingly.


This won't work --

Trying GIBBERISH:

telnet> GIBBERISH
?Invalid command

-- because you're now talking to the telnet command, and not the Apache server that you have used telnet to connect to. Likewise, this --


Going back to the original command prompt just said "GIBBERISH" was not a bash command.

-- fails for a similar reason: you're using "GIBBERISH" as a command for the Bash shell, so you're even farther away from Apache now.


Go back to the original telnet line, establish a connection, and then type one word, followed by hitting the enter key twice. (Did you see how CGI scripts have to terminated headers with "\n\n" ? Hitting return twice is the same thing.)

This should bring back a response from the server.


On the other hand, now that we know you have Linux, you can probably do this more easily by using the "lynx" text-mode web browser. Try one of these lines:


    lynx -dump -head http://localhost/
    lynx -dump -head http://localhost:8080/

You should get back responses something like this:

    $ lynx -dump -head http://localhost:8080/
    HTTP/1.1 200 OK
    Date: Fri, 13 Aug 2004 15:38:50 GMT
    Server: Apache/1.3.29 (Darwin) mod_perl/1.26 mod_ssl/2.8.16 OpenSSL/0.9.7b
    Connection: close
    Content-Type: text/html

    $ lynx -dump -head http://localhost:8080/
    HTTP/1.1 200 OK
    Date: Fri, 13 Aug 2004 15:38:55 GMT
    Server: Apache/1.3.29 (Darwin) mod_perl/1.26 mod_ssl/2.8.16 OpenSSL/0.9.7b
    Connection: close
    Content-Type: text/html

The details may vary, but it'll be substantially the same block.

If you can get this far, Apache is basically working.

If you hit errors here, you need to fix Apache.



--
Chris Devers

--
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