> At 2:41 pm -0400 1/7/01, Steve Torrence wrote:
>> [Sun Jul 1 14:32:18 2001] [error] (2)No such file or directory:
>> exec of /Library/WebServer/CGI-Executables/YaBB.cgi failed
>> [Sun Jul 1 14:32:18 2001] [error] [client 63.220.209.166] Premature
>> end of script headers: /Library/WebServer/CGI-Executables/YaBB.cgi
>>
>> and from the browser (OmniWeb).
>> Internal Server Error
>
> i think it's definitely a problem in the script(s). I've had a quick
> look through YaBB and it's pretty baroque in there. not great code,
> imho.
Here's *one* possibility. Lots of people are having line-ending problems in
using MacOSX, often due to unstuffing things with Stuffit Expander, rather
than using the built-in (gnu)tar. What happens is that text files are
unstuffed with CR line endings, and with cgi scripts this will produce the
"premature end of script headers". If this *is* the case you'll see it when
you "less" the file in question: in a terminal window (where % represents
the prompt) enter
% less /Library/WebServer/CGI-Executables/YaBB.cgi
If it's full of bold "^M" symbols you've struck gold, and should either
(a) get rid of your current YaBB files and redo everything from scratch
after expanding with tar, or
(b) convert the offending text files via something like
% mv YaBB.cgi YaBB.cgi.old
% tr '\015' '\012' < YaBB.cgi.old > YaBB.cgi
[[Actually, scrap that: this is a perl list, so maybe I should recommend
something more like:
% perl -pi -e 'tr/\015/\012/;' YaBB.cgi
which avoids the initial move and edits "in-place" instead.]]
In any case, this can get very old very quickly if the text files are
scattered around several directories, so (a) might be easier if this really
is the problem.
Worth a try before venturing into more exotic territory!
Cheers,
Paul (who has been bitten by this sort of thing several times while
dancin' the nine to ten shuffle)