Article View: demon.tech.unix
Article #256Re: Demon Commerce Web Server Perl CGI question
From: hypo
Date: Sun, 23 Jul 2000 00:00
Date: Sun, 23 Jul 2000 00:00
58 lines
3146 bytes
3146 bytes
Pak Chan <Pak.Chan@metameme.demon.co.uk> wrote in message
news:MPG.13dcd9ad722cdebc989689@news.demon.co.uk...
> In article <x7vgy8fd3v.fsf@indy1.watching.org>, jrg@blodwen.demon.co.uk
> says...
> > Pak Chan <Pak.Chan@metameme.demon.co.uk> writes:
> > > I've contacted Demon commercial tech support, but they have absolutely
no
> > > idea (clue?) as to why it fails to work. The only thing that they can
> > > think of is that I'm loading the CGI library module in my scripts
> > > (perfectly understandable, given that they are CGI scripts!). They
have
> >
> > 'Internal server' errors generally mean that something is being output
> > at an inappropriate moment - mixing up errors with where the HTTP
> > headers are supposed to be.
> >
> > You could try, before any of the 'use' statements, something like
> >
> > BEGIN {
> > $| = 1;
> > print "Content-Type: text/plain\r\n\r\n";
> > }
> >
> > in an effort to print a valid content-type header before anything else
> > fails to initialise correctly and prints out error messages.
> >
> > Or, look for information on the 'xx-' debugging feature on Demon's
> > servers. (I don't know if it's mentioned in the documentation -
> > anyone?)
>
> Thanks. I've just tried the xx- feature, and it's quite illuminating:
>
> parse error in file /www/cgi-bin/www.lawsoncars.com/xx-sm.pl at line 22,
> next 2 tokens "use CGI"
> parse error in file /www/cgi-bin/www.lawsoncars.com/xx-sm.pl at line 30,
> next 2 tokens "new CGI"
> parse error in file /www/cgi-bin/www.lawsoncars.com/xx-sm.pl at line 34,
> next 2 tokens "->"
> parse error in file /www/cgi-bin/www.lawsoncars.com/xx-sm.pl at line 36,
> next 2 tokens "->"
> parse error in file /www/cgi-bin/www.lawsoncars.com/xx-sm.pl at line 38,
> next 2 tokens "->"
> parse error in file /www/cgi-bin/www.lawsoncars.com/xx-sm.pl at line 54,
> next 2 tokens "->"
> Execution of /www/cgi-bin/www.lawsoncars.com/xx-sm.pl aborted due to
compilation errors.
>
> I was given the impression that Demon ran Perl 5 on their servers. Is
> this not the case? Anyone from Demon Internet care to confirm this?
>
I'm not sure the CGI package is part of the standard perl distribution.
But the error doesn't look like a missing package - normally it says "cant
locate XXX.pm at script line yy".
Maybe you need to be explicit about perl5.
Paul
Technical Details
Message-ID:
<964381349.16873.0.nnrp-01.d4e5b7eb@news.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<MPG.13d983b27058431d989687@news.demon.co.uk> <x7vgy8fd3v.fsf@indy1.watching.org> <MPG.13dcd9ad722cdebc989689@news.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac57,d8d9e2526b3e273c X-Google-Attributes: gidfac57,public From: "hypo" <nospam> Subject: Re: Demon Commerce Web Server Perl CGI question Date: 2000/07/23 Message-ID: <964381349.16873.0.nnrp-01.d4e5b7eb@news.demon.co.uk> X-Deja-AN: 649857136 X-NNTP-Posting-Host: fairwind.demon.co.uk:212.229.183.235 References: <MPG.13d983b27058431d989687@news.demon.co.uk> <x7vgy8fd3v.fsf@indy1.watching.org> <MPG.13dcd9ad722cdebc989689@news.demon.co.uk> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 964381349 nnrp-01:16873 NO-IDENT fairwind.demon.co.uk:212.229.183.235 X-MSMail-Priority: Normal Newsgroups: demon.tech.unix