Front page | perl.beginners |
Postings from April 2002
Re: error log message
From:
drieux
Date:
April 25, 2002 16:16
Subject:
Re: error log message
Message ID:
6BA1D03A-58A2-11D6-AF89-0030654D3CAE@wetware.com
On Thursday, April 25, 2002, at 03:56 , Mat Harrison wrote:
> what does this mean in my apache error log? i get it A LOT. someone said
> that it was something to do with windows/linux line ending compatibility
> probs.
>
> <log snippet>
>
> [Thu Apr 25 23:48:59 2002] [error] (2)No such file or directory: exec of
> /web/cgi-bin/genestate/check_login.cgi failed
> [Thu Apr 25 23:48:59 2002] [error] [client 192.168.0.1] Premature end of
> script headers: /web/cgi-bin/genestate/check_login.cgi
>
> </log snippet>
the alternative silly is where is the 'perl' really is
installed - if it really is at /usr/bin/perl then your
sheBang would be ok...
this looks like the problem:
[Thu Apr 25 16:03:51 2002] [error] [client <IP_ADDR>] file permissions
deny server execution:
/drieux/CS/cgi/dumb.cgi
this was the one without the execute permissions
[Thu Apr 25 16:09:47 2002] [error] (2)No such file or directory: exec of
/drieux/CS/cgi/d2.cgi failed
this is for the same script but as:
### #!/usr/bin/joeBobperl
###
### use CGI qw/:standard/;
###
### $url = "http://www.perl.com/CPAN/";
### print "Location: $url\n\n";
### exit;
so it looks like you need to have the shebang point
to where there is a perl - or put a symbolic link
at /usr/bin/perl -> <wherePerlIsInstalled>
disky: 101:] ls -ld /usr/bin/perl /usr/local/bin/perl
-rwxr-xr-x 2 root root 718844 Sep 12 2000 /usr/bin/perl
lrwxrwxrwx 1 root root 13 Dec 17 00:10
/usr/local/bin/perl -> /usr/bin/perl
disky: 102:]
or as a hard link ala
vladimir: 60:] ls -li /usr/bin/perl /usr/local/bin/perl
558805 -rwxr-xr-x 3 root other 1175680 Mar 19 15:31 /usr/bin/
perl
558805 -rwxr-xr-x 3 root other 1175680 Mar 19 15:31
/usr/local/bin/perl
vladimir: 61:]
ciao
drieux
---