[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] CGI Script Error
- Subject: [cobalt-developers] CGI Script Error
- From: Siao Yuan Tan <sy.tan@xxxxxxxxxx>
- Date: Sun Apr 1 12:41:01 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
Dear all,
I am new to CGI scripting, but our customer need to use CGI in the cobalt
server for their website. I try it myself, at first it won't run because
the owner of the file is incorrect, and i did not chmod 755 to the script.
After I do so, I get the following error:
-------------------
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.
---------------------
So I change the first line as well and I get Internal Server Error: The
server encountered an internal error or misconfiguration and was unable to
complete your request.
My code is simple and few lines only, can someone tell me did I miss out
anything?
#!/usr/bin/perl --
use CGI;
print "<html>";
print "<body>";
print "test";
print "</body>";
print "</html>";
exit 0;
Thanks for any advise and help.
Siao Tan