[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: Revd Leonard Payne <vicarage@xxxxxxxxxxxxxx>
- Date: Wed Oct 23 16:07:08 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
on 23/10/02 4:42, alan@ at alan@xxxxxxxxx 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