[Xitami] simple cgi question

Hugo Notti xitami@lists.xitami.org
Fri, 02 Nov 2001 17:25:33 +0100


Check the following:

*.pl does not need to be bound to perl.exe
the path is irrelevant.
perl.exe must be in the path-statement of your computer so Xitami is able 
to find it.
if your script is called hello, it should work then.
if it is called hello.pl you need to call hello.pl of course (not even 
windows ignores the file endings, it just does not show them by default).
it is possible that you have to call the script from a html-page inside xitami.
if all of the above does not work, you should check your installation and 
maybe even check if you have saved the script as plain text or not.

Good luck,

Hugo

At 16:53 02.11.01, you wrote:
>Greetings;
>
>Actually, the problem is the first line. You need the path
>of perl. Probably something like #!C:\Perl\bin\perl or
>you can just make it #!perl if the perl\bin directory is in
>your path.
>
>Good Luck!
>Dennis
>
> >}On Nov 2,  1:54, "goldtech@worldpost.com" wrote:
> >} Subject: [Xitami] simple cgi question
> >Using xitami vanilla on win2k pro. "workstation". (IE5)
> >Trying to learn perl, cgi w/Xitami...on my local pc,
> >sorry if problem is very simple.
> >
> >I can not get cgi script to execute.
> >
> >Here's the script:
> >
> >#!C:\Perl\bin
> >
> >print "Content-type: text/html\n\n";
> >print "Hello World";
> >#end script
> >
> >The shebang line is the path to my perl bin folder.
> >The script runs ok in a dos box.
> >The script name is: hello.pl and is in C:\Xitami\cgi-bin
> >If I point the browser to http://127.0.0.1/cgi-bin/testcgi
> >it works and shows env. variables.
> >
> >But:
> >If I point browser to: http://127.0.0.1/cgi-bin/hello
> >then I get a default IE5 page saying there was a problem
> >opening this pg.
> >
> >Any help appreciated to get me started. Thanks, Lee
> >
> >
> >
> >
> >--
> >Xitami Users Mailing List -- For Xitami support
> >To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
> >}-- End of excerpt from "goldtech@worldpost.com"
>
>
>
>--
>Xitami Users Mailing List -- For Xitami support
>To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami

Hugenotten-Nutten essen Hagebutten

Hugo Notti
Buttistreet 39
VRC-12345 Hum Hom
Virtual Republic of Chewingum