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

Magus @ Yahoo xitami@lists.xitami.org
Sun, 22 Sep 2002 15:35:42 -0500


Hello All,

 Just a couple of dumb questions. Where do you make the cgi-bin
 directory and what goes in it to test the CGI? I have a cgi-src, but
 no cgi-bin directory under "C:\Program Files\Xitami"

-- 
Best regards,
 Magus

Sunday, September 22, 2002, 3:21:19 PM, you wrote:

PvdG> OK, $Bill, the answers are in context. Again thank you for trying to help.
PvdG> Since I last posted, I uninstalled and reinstalled both Xitami and
PvdG> ActivePerl, just to be sure the extra settings for PHP were not the culprit.
PvdG> As the results are still the same with the default install, I guess the PHP
PvdG> settings in defaults.cfg are exonerated.
PvdG> One thing I find a bit strange about the Xitami install is that no cgi-bin
PvdG> directory is created by the install. I have to make one myself. Is this
PvdG> normal?

PvdG> ----- Original Message -----
PvdG> From: "$Bill Luebkert" <dbe@wgn.net>
PvdG> To: "Peter van der Goes" <pvdg@worldnet.att.net>
PvdG> Sent: Sunday, September 22, 2002 9:23 AM
PvdG> 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).

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

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

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


>>
>> Show content of cgierr.log and logs/{access,error}.log (only the last
PvdG> entries
>> that apply to the failed script - you could either clear the logs or check
PvdG> them
>> first to see what the last entry is).
PvdG> From access.log
PvdG> No entries from displaying animal.html
PvdG> From error.log
PvdG> 127.0.0.1 - pvan [22/Sep/2002:10:07:32 -0600] "GET /animal.html HTTP/1.1"
PvdG> 404 0 "" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; AT&T CSM6.0; AT&T
PvdG> CSM7.0)"
PvdG> From cgierr.log
PvdG> No entries from displaying animal.html, entering text and clicking on
PvdG> Submit.
>>
>>
>> logging is turned on be default.
>> cgierr.log should show any script failures. logs/error.log and
PvdG> 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
PvdG> http://www.todbe.com/
>>
>>


PvdG> --
PvdG> Xitami Users Mailing List -- For Xitami support
PvdG> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami

______________________________________________________________________ 
Post your ad for free now! http://personals.yahoo.ca