[Xitami] Tseting CGI on localhost
RPO
xitami@lists.xitami.org
Wed, 7 Jul 2004 08:12:55 -0700
sounds like you have 3 issues: xitami config issue, WinXP issue and Perl
script issue:
1. is localhost aliased properly? is 127.0.0.1 selected as an IP address
that xitami will run on?
2. did you set up you cgi-bin root directory properly in defaults.cfg?
what is the root path for you cgi-bin files?
3. did you alias .pl files, in WinXP, to your /perl/bin/perl program - or
where ever you installed perl to?
----- Original Message -----
From: <jgdeitz@cox.net>
To: <xitami@lists.xitami.org>
Sent: Tuesday, July 06, 2004 4:36 PM
Subject: [Xitami] Tseting CGI on localhost
> I'm trying to test a Perl CGI program (form processor, POST) on localhost
> (WinXP). I'm experiencing a series of problems:
>
> 1) When I invoke the pgm.pl from a form with
> action="http://localhost/cgi/alwmsg.pl" it fails with a "Page not found"
> error; however, if I type the same URL into a browser the program runs,
but
> (see problem 2)
> 2) When the program executes, it seems to be simply executing under
> Windows. Running the manual debugger, I see that none of the HTTP
variables
> are in ENV, and none of the form fields are passed in.
>
> I've set up a CGI Alias called "localalw" and associated the exact
directory
> where the Perl script is.
>
> I've also set two environmental variables to try to invoke the ActiveState
> Komodo debugger instead of the default one:
>
> PERL5LIB
> c:\Program Files\ActiveState Komodo 2.5
> PERLDB_OPTS
> RemotePort=localhost:9011 PrintRet=0
>
> But this does not work; default (command line) debugger still gets
invoked.
>
> My Goal: When I invoke the Perl program from a HTML page form, I would
like
> the debugger (Komodo) to be invoked for the program, normal HTTP/CGI
> environment variables to be set up for the program, and the output from
the
> program (an HTML page) returned in the browser.
>
> Any idea why HTTP isn't handling my Perl script?
>
> Thanks for any help.
>
>
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>