[102277] in RedHat Linux List

home help back first fref pref prev next nref lref last post

RE: Internal HTTP ERROR.

daemon@ATHENA.MIT.EDU (Paul Pettit)
Wed Dec 2 10:17:00 1998

Reply-To: <paulp@ccbnpts.com>
From: "Paul Pettit" <paulp@ccbnpts.com>
To: <redhat-list@redhat.com>
Date: Wed, 2 Dec 1998 09:16:07 -0600
In-Reply-To: <199812020307.WAA23923@smtp3.erols.com>
Resent-From: redhat-list@redhat.com

You might want to send this in plain/text next time. It's easier to cut and
paste.

Paul Pettit      |     Opinions and advice expressed are from me
CTO              |     and are not my employer's.

Consistent Computer Bargains, Inc.
http://www.ccbnpts.com

If you had to identify, in one word, the reason the human race has not
achieved, and never will achieve, its full potential, that word would
be: "meetings."       -- Dave Berry


-----Original Message-----
From: Charles Galpin [mailto:cgalpin@lighthouse-software.com]
Sent: Tuesday, December 01, 1998 9:05 PM
To: "redhat-list@redhat.com"@smtp3.erols.com
Subject: RE: Internal HTTP ERROR.


aromes I believe you are going about this the wrong way. Here is what I
believe you should be doing 1. Make sure apache is configured properly for
cgi scripts 2. Then, and only then try get "fancier" scripts working 3.
Learn some perl Ok, so please accomplish number 1 first. Here is a
****SIMPLE**** cgi script that relies on nothing else, and takes no
arguments. It can simply be called from lynx (no html needed ) with
http://localhost/cgi-bin/hello.pl please do the following 1. copy and paste
the following as is in a file called hello.pl in your cgi bin dir 2. make it
executable chmod +x hello.pl 3. test from the command line ./hello.pl you
should see an html page generated, with NO ERROR messages 4. now try with
lynx http://localhost/cgi-bin/hello.pl you should get a simple page with a
title, heading and environment variable values printed out. 5. report back
to us. :)

---- start hello.pl --- CUT HERE ------
#!/usr/bin/perl
print <<"endhead";
Content-type: text/html
Hello World
endhead

    foreach $env (keys %ENV) {
	print sprintf("%-20s = %s\n", $env, $ENV{$env});
    }

print <




endtail

---- end hello.pl --- CUT HERE ------



-- Charles Galpin


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with
                       "unsubscribe" as the Subject.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post