[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: newbie's apache , internal server error, please help

Rodent of Unusual Size wrote:
eric lin wrote:

[Thu Dec 12 19:55:46 2002] [error] (2)No such file or directory: exec of
/usr/lib/cgi-bin/entrance.pl failed

this usually means that the interpreter in the shebang line of
the script is incorrect.  or possibly that the script file
has dos line endings.

what does 'ls -lag /usr/local/bin/perl' say?

edit the script file ('vi entrance.pl'); does the status line
at the bottom say 'dos'?

www:/home/fsshl# #!/usr/local/bin/perl
bash: !/usr/local/bin/perl: event not found

no, *execute* the script, don't type it interactively.  that is,

www:/home/fsshl# /usr/lib/cgi-bin/entrance.pl

Thanks your hint on this
so I change my .pl file to #!/usr/bin/perl which is my path in env
so I tried hit submit bottom this time, the browser did not show error, but it show a piece of white, that may be improve, but not what I want

I want to colletec date from visiter and print it out
(at least at beginning)

my pl is


use strict;

use CGI ':standrard';

print "Content-type: text/html\n\n";

foreach my $name (param()) {
  my @cpu=param($name);
  print "<p>The field with the NAME attribute euual to <b>
        $name</b> had a VALUE equal to <b>@cpu</b></p>\n";

Please help again


Sincere Eric
linux pc for sale

Reply to: