>I continue to get the following errors when trying to run PERL apps. 
>I've tried it on the different macs and 1 has OS X Server and one 
>was a fresh install. All the same error. Anyone run into this?
>
>[Sat Jun 30 23:45:10 2001] [error] (2)No such file or directory: 
>exec of /Library/WebServer/cgi-bin/YaBB/YaBB.cgi failed
>[Sat Jun 30 23:45:10 2001] [error] [client 63.220.209.166] Premature 
>end of script headers: /Library/WebServer/cgi-bin/YaBB/YaBB.cgi

The file

/Library/WebServer/cgi-bin/YaBB/YaBB.pl

either doesn't exist, or refers to another file which doesn't exist.

I'm puzzled by the cgi-bin part of the address. a clean install of os 
x should be looking for scripts in 
/Library/WebServer/CGI-Executables, and would normally be complaining 
that  /Library/WebServer/CGI-Executables/YaBB/YaBB.pl doesn't exist.

so there are two strong possibilities. either your apache 
configuration is b0rked somehow and looks for scripts in the wrong 
place, or there's something in YaBB.pl - probably a require statement 
- which refers to a file that doesn't exist.

or, i suppose, you just put the script in the wrong folder. did you 
by any chance create a cgi-bin folder in WebServer/Documents, or run 
an installer supplied with this script? something somewhere might 
well be assuming you're on linux.

anyway. if you type

cat /etc/httpd/httpd.conf | grep cgi-bin

you should see the following:
     ScriptAlias /cgi-bin/ "/Library/WebServer/CGI-Executables/"

among other lines. if you do, then apache is fine. Next, make sure 
that the scripts are in /CGI-Executables, (and that 
CGI-Executables/YaBB/ is chmod 755, as well as the scripts).

If it still throws the same or a similar error, then there's 
something wrong in the script. it's most likely to be a require 
statement, but there are several other possibilities. searching for 
'cgi-bin' should reveal it. you'll need to identify the file or 
script that is referred to and change that line so that it points at 
the right place.

It's possible that the broken reference is itself in an ancillary 
file (a config file, for example), and there may be more than one...

good luck

will
-- 











pgpkey: http://www.spanner.org/keys/will.txt

Reply via email to