At 2:41 pm -0400 1/7/01, Steve Torrence wrote:
>Ahh this seems to be the problem. Look what I got. What should I do
>to fix this?
>
>[localhost:~] steve% cat /etc/httpd/httpd.conf | grep cgi-bin
> ScriptAlias /cgi-bin/ "/Library/WebServer/CGI-Executables/"
>#ErrorDocument 404 /cgi-bin/missing_handler.pl
>#<Location /cgi-bin/phf*>
>[localhost:~] steve%
no, that's all as it should be. which is good news. the ErrorDocument
line is just a way of configuring what happens when something goes
wrong.
>From the error log:
>
>[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.
at the moment it's not even compiling - that's why you're getting
that rather blank error in omniweb.
i think you might find it's a very simple problem: the script can't
find perl. the usual reason for that is that the line endings in the
script are wrong, which can garble the shebang. use bbedit or
something else to make sure that the line endings are in unix format,
not dos (which does seem to be how they come out). it wouldn't run
for me until i did that.
not the most helpful error message in the world, i'd say.
if that doesn't help, your first step should always be a syntax
check. type in a terminal window:
perl -c /Library/WebServer/CGI-Executables/YaBB.cgi
which will tell you exactly where the problem lies. on my mac it's
fine, having just unzipped it, but you might get useful messages.
if that says 'syntax ok' then try running the script from the command
line, first by typing
perl /Library/WebServer/CGI-Executables/YaBB.cgi
then just
/Library/WebServer/CGI-Executables/YaBB.cgi
if it breaks at the last of those but not the others then we're back
to the line-ending problem.
i suspect that if it's still not working, it's just a configuration
glitch. if you look at this part of YaBB.cgi (line 27 onwards):
use CGI::Carp qw(fatalsToBrowser);
require "Settings.pl";
require "$language";
require "$sourcedir/Subs.pl";
require "$sourcedir/Load.pl";
require "$sourcedir/Security.pl";
you can see there's a whole lot of requiring going on, which is kind
of a nuisance since it only breaks at runtime, not compilation.
Make sure that Settings.pl is in the same directory as the YaBB.cgi,
first, along with ./Boards and ./Messages and the other
subdirectories. the best way to do this is probably just to copy anew
the whole contents of the yabb cgi-bin folder into CGI-Executables
(but _not_ the cgi-bin folder itself. just its contents). If things
don't improve, you'll need to go through Settings.pl making sure
that all the variables are correct for your system. most of it is
relative, so it should be ok, but you might find something useful.
hth
will
--
pgpkey: http://www.spanner.org/keys/will.txt