Gentoo Archives: gentoo-user

From: Kevin O'Gorman <kogorman@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Eeek: Apache2 lost it's CGI ability
Date: Sun, 15 Feb 2009 23:59:43
I've got a low-use CGI script on my web server.  Aside from web
crawlers, I usually see at most a few hits a week from
people who share my hobby.

I just found out it's been down for an unknown period of time because
my Apache no longer does CGI scripting.
I can't even get it to run the simplest possible C program.

In /etc/apache2/httpd.conf, I've added a single line to what I think
is the standard config  --  at the end I added

#KOSMANOR: defer to ./kosmanor/hexDirs.conf
Include /etc/apache2/kosmanor/hexDirs.conf

And the CGI part of hexDirs.conf is just

ScriptAlias /hex-bin /hex/bin
<Directory /hex/bin>
    Options FollowSymLinks
    Order allow,deny
    Allow from all

I don't get much help from the logs.  The access log shows that the
request got an error code, - - [15/Feb/2009:15:46:32 -0800] "GET /hex-bin/board
HTTP/1.1" 500 542

 and all that the error log says is:
[Sun Feb 15 15:46:32 2009] [error] [client] Premature
end of script headers: board

Any idea how to debug this, or any intuitions about what I neglected to do?

Kevin O'Gorman, PhD


Subject Author
[gentoo-user] Re: Eeek: Apache2 lost it's CGI ability Harry Putnam <reader@×××××××.com>
Re: [gentoo-user] Eeek: Apache2 lost it's CGI ability Naga <nagatoro@×××××.com>