[Xitami] Re: ActivePerl & Xitami - CGI problems Continued

Peter van der Goes xitami@lists.xitami.org
Sun, 22 Sep 2002 15:21:19 -0500


OK, $Bill, the answers are in context. Again thank you for trying to help.
Since I last posted, I uninstalled and reinstalled both Xitami and
ActivePerl, just to be sure the extra settings for PHP were not the culprit.
As the results are still the same with the default install, I guess the PHP
settings in defaults.cfg are exonerated.
One thing 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?

----- Original Message -----
From: "$Bill Luebkert" <dbe@wgn.net>
To: "Peter van der Goes" <pvdg@worldnet.att.net>
Sent: Sunday, September 22, 2002 9:23 AM
Subject: Re: ActivePerl & Xitami - CGI problems Continued


> Show your complete HTML page that calls the script and fails (strip it
> down to the minimal failing code).

>From animal.html (in \xitami\webpages)
<body>
<form action="/cgi-bin/animal.cgi" METHOD=POST>
Which animal? <INPUT type="text" name="animal">
<P><INPUT type="submit">
</form>
</body>
>
> Show your entire minimal failing script.
>From animal.cgi (in \xitami\cgi-bin)
#!C:\perl\bin\perl.exe -w
use strict;
use CGI ':standard';

my $animal;
$animal = param('animal');

print "Content-type: text/html\n\n";
print "Show me the $animal";


>
> Show content of cgierr.log and logs/{access,error}.log (only the last
entries
> that apply to the failed script - you could either clear the logs or check
them
> first to see what the last entry is).
>From access.log
No entries from displaying animal.html
>From error.log
127.0.0.1 - pvan [22/Sep/2002:10:07:32 -0600] "GET /animal.html HTTP/1.1"
404 0 "" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; AT&T CSM6.0; AT&T
CSM7.0)"
>From cgierr.log
No entries from displaying animal.html, entering text and clicking on
Submit.
>
>
> logging is turned on be default.
> cgierr.log should show any script failures. logs/error.log and
logs/access.log
> should show all good and failed accesses.
>
> --
>    ,-/-  __      _  _         $Bill Luebkert   ICQ=162126130
>   (_/   /  )    // //       DBE Collectibles   Mailto:dbe@todbe.com
>    / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
> -/-' /___/_<_</_</_     Castle of Medieval Myth & Magic
http://www.todbe.com/
>
>