[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] CGI trouble RaQ4
- Subject: Re: [cobalt-users] CGI trouble RaQ4
- From: "alan@" <alan@xxxxxxxxx>
- Date: Wed Oct 23 20:40:00 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
From: "Revd Leonard Payne" <vicarage@xxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Wednesday, October 23, 2002 7:06 PM
Subject: Re: [cobalt-users] CGI trouble RaQ4
> on 23/10/02 4:42, alan@ at mumbled something like:
>
> >
> > From: "Ed48">
> >> No matter what site or user CGI scripting seems to not work.
> >> I did check the box for enabeling CGI scripting.
> >> Here is the test script and the result.
> >>
> >> #!/usr/bin/perl
> >>
> >> print <<END_of_Multiline_Text;
> >> Content-type: text/html
> >>
> >> <HTML>
> >> <HEAD>
> >> <TITLE>Hello World</TITLE>
> >> <BODY>
> >> <H1>Greetings, Terrans!</H1>
> >> </BODY>
> >> </HTML>
> >>
> >> END_of_Multiline_Text
>
>> ------------------------------------------------------------------------
> >> Here is the error message:
> >>
> >> CGIWrap encountered an error while attempting to execute this script:
> >>
> >> Error Message: Permission denied
> >> Error Number: 13
> >> This message usually indicates there is a problem with the script
itself.
> >> Often this indicates either that the #! line of the script is
incorrect,
> > or
> >> the script was uploaded in binary mode instead of ascii mode. Check to
> > make
> >> sure that the script does not have control-M's at the end of every
line.
> >> That will prevent it from executing. An easy fix that takes care of
this
> >> most of the time is to put '#!/.../perl --' instead of '#!/.../perl' on
> > the
> >> first line of the script.
> >> If you are not the owner of this script, please forward this error and
the
> >> URL that caused it to the script owner. That is often the component in
the
> >> URL right after /cgiwrap/.
> >
> >
> > Hi,
> > You might like to try the following :
> > ########################################################
> > #!/usr/bin/perl
> > ##############
> >
>
> <snip>
>
> No No No
>
> The #!/usr/bin/perl must be the very first line.
>
> The problem appears to be one of persmissions. Try CHMODing it to 777 or
at
> least world-executable.
>
>
> Blessings
> Revd Leonard
>
Please don't no no no me.
The comment hashes were to separate the script from the email.
He still has to specify what the content type is correctly, as I showed in
my reply, but which you seem to have 'snipped'.
The other replies regarding chmod are also relevant, but it still won't work
as he reproduced it here.
Alan