Date: Fri, 5 Apr 2002 10:27:21 -0500 (EST) From: John Bleichert <syborg@stny.rr.com> To: freebsd-questions@freebsd.org Subject: Re: newbie getting started with perl Message-ID: <Pine.LNX.4.44.0204051025160.18891-100000@janeway.vonbek.dhs.org> In-Reply-To: <20020405004511.A6159@mail.clubplus.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.44.0204051025160.18891-100000>