[Xitami] Re: ActivePerl & Xitami - CGI problems Continued
Peter van der Goes
xitami@lists.xitami.org
Tue, 24 Sep 2002 10:07:48 -0500
Uh oh!
I'm now answering myself (not a good sign).
I downloaded and installed the Mozilla browser to try with Xitami and got
the same disappointing results, so I guess we can exonerate IE6. I also
downloaded and tried both Sambar and Ohttpd (both Windows web servers).
After getting them configured to accept the .pl scripts I've shown before, I
tried the HTML calling .pl combination in them. Same empty page returned!
I also installed and tried all this with Xitami and ActivePerl on two other
PC's (in both Win 98 SE and Win 2000). One is my work PC connected to the
campus network, the other, a spare, completely isolated from any network or
internet connection (in case those factors came to bear on the situation).
In all cases, no errors logged, even with Xitami debugging turned on. It
seems the output from the called .pl script is going into the electronic
black hole, somehow.
I also tried adding to defaults.cfg under [Filters]
.pl=c:\Perl\bin\perl.exe
which changed nothing.
Of course, any further ideas/suggestions gratefully accepted.
Thanks again to all who are trying!
----- Original Message -----
From: "Peter van der Goes" <pvdg@worldnet.att.net>
To: <xitami@lists.xitami.org>
Sent: Tuesday, September 24, 2002 8:23 AM
Subject: Re: [Xitami] Re: ActivePerl & Xitami - CGI problems Continued
> Thanks very much for that information, Paul. Now I know it's not the
> manually-created cgi-bin.
> As a further confusing factor, I found a CGI script that generates HTML
form
> objects, asks the user to enter info, then displays the results. This
works
> fine in my setup:
>
> #!C:\perl\bin\perl.exe
>
> use CGI qw(:standard);
>
> print header;
> print start_html('A Simple Example'),
> h1('A Simple Example'),
> start_form,
> "What's your name? ",textfield('name'),
> p,
> "What's the combination?",
> p,
> checkbox_group(-name=>'words',
> -values=>['eenie','meenie','minie','moe'],
> -defaults=>['eenie','minie']),
> p,
> "What's your favorite color? ",
> popup_menu(-name=>'color',
> -values=>['red','green','blue','chartreuse']),
> p,
> submit,
> end_form,
> hr;
>
> if (param()) {
> print
> "Your name is ",em(param('name')),
> p,
> "The keywords are: ",em(join(", ",param('words'))),
> p,
> "Your favorite color is ",em(param('color')),
> hr;
> }
> print end_html;
>
> As far as not seeing anything out of whack, join the club 8).
> As I type this, I'm downloading an alternative browser to try, but am not
> optimistic it will make any difference. I'm beginning to think about
> networking settings and what, if anything, there might cause the output
from
> a CGI (or .pl) script) not to appear in the browser. It seems (to my
> simplistic way of thinking) that the output cannot find its way back to
the
> browser when a script is called from a HTML page? As I find no messages in
> the cgierr or error logs, I am (at this stage) assuming the script is run.
>
> ----- Original Message -----
> From: "Paul Reid" <preid@rci.rutgers.edu>
> To: "Peter van der Goes" <xitami@lists.xitami.org>
> Sent: Monday, September 23, 2002 9:49 AM
> Subject: Re: [Xitami] Re: ActivePerl & Xitami - CGI problems Continued
>
>
> > > I find a bit strange about the Xitami install is that no cgi-bin
> > > directory is created by the install. I have to make one myself. Is
> > > this normal?
> >
> > Yes.
> >
> > Find a very old copy of Xitami, it creates a cgi-bin and drops a
> > sample file that prints the environment.
> >
> > That sample script could be considered a security risk, so they took
> > it out of the system. The next time they built the archive, their
> > clever tool noticed that the cgi-bin directory was empty, and didn't
> > include it in the distribution.
> >
> > I've looked at the rest of the thread and do not see why it isn't
> > working. Since non-Form scripts work, we know Perl is being found.
> >
> > -PRR
> >
> >
> >
> > --
> > Xitami Users Mailing List -- For Xitami support
> > To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
> >
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>