[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 15:37:23 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
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
##############
print "Content-type: text/html\n\n"; ####### this must be first and in
quotes .
print <<END_of_Multiline_Text;
<HTML>
<HEAD>
<TITLE>Hello World</TITLE>
</HEAD>
<BODY>
<H1>Greetings, Terrans!</H1>
</BODY>
</HTML>
END_of_Multiline_Text
#######################################################
Alan