From owner-freebsd-questions Fri Apr 5 7:26:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from janeway.vonbek.dhs.org (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by hub.freebsd.org (Postfix) with ESMTP id A652837BB89 for ; Fri, 5 Apr 2002 07:26:03 -0800 (PST) Received: by janeway.vonbek.dhs.org (Postfix, from userid 12347) id 958A4EABB42; Fri, 5 Apr 2002 10:27:21 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by janeway.vonbek.dhs.org (Postfix) with ESMTP id 9306D6A86AB for ; Fri, 5 Apr 2002 10:27:21 -0500 (EST) Date: Fri, 5 Apr 2002 10:27:21 -0500 (EST) From: John Bleichert X-X-Sender: syborg@janeway.vonbek.dhs.org Reply-To: John Bleichert To: freebsd-questions@freebsd.org Subject: Re: newbie getting started with perl In-Reply-To: <20020405004511.A6159@mail.clubplus.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 5 Apr 2002, David Banning wrote: > I am trying a simple script in perl; > > #!/usr/bin/perl > > print "Content-type: text/html\n\n"; > print "Hello World!"; > > the file is saved as hello.cgi and simply displays as it is above > in my browser. I am wondering if something is not working or if > I am missing something. > > thanks. > This isn't a Perl problem, it's a problem with your webserver configuration. Is the script executable? Does it run properly from a command line? If so, see the 'script-alias' section of httpd.conf and make sure your webserver is looking in the right place. Normally, when this happens to me, I've forgotten to make the script execuatble ;-) # chmod +x myscript.cgi JB |-John Bleichert----syborg@stny.rr.com----------------| |-------------------http://vonbek.dhs.org/latest.jpg--| To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message