Premature end of script headers


#1

I’m a *nix newbie, so if it’s my lack of knowledge that’s hosing me,
please be nice and don’t flame :slight_smile:

Ok - RH Linux (2.2.12), Apache, MySQL 3.22.32.

Installed all necessary modules and rt, which works from CLI. When
loading webrt.cgi or admin-webrt.cgi from a browser, I get a 500 server
error. This is what shows up in the logs:

[Tue Sep 12 03:24:24 2000] [error] [client 20.11.25.8] Premature end of
scri
pt headers: /usr/local/rt/bin/cgi/webrt.cgi

Here’s what I added to httpd.conf:

Alias /webrt/ /usr/local/rt/lib/images/
ScriptAlias /rt/ /usr/local/rt/bin/cgi/

<Directory /usr/local/rt/bin/cgi/>
AllowOverride All
Options All ExecCGI FollowSymLinks
order allow,deny
allow from all

I also went through the past several months of the mailing list archives
and didn’t find anything. Anyone have any ideas?

TIA,
St-

Steve Thomas + sthomas@apexvoice.com
Network Administrator + 818.379.8400 Voice
APEX Voice Communications, Inc. + 818.379.8410 Fax


#2

Check:
/var/log/httpd/error_log for some info.

Then:
“cd” to your rt installation directory, then “cd bin/cgi” and run
"./webrt.cgi" to see what happens. It should give you a more detailed
error there. Be sure to become the same user that your web server runs
under (usually the user “nobody”) when you run the cgi by hand…

-Rich

I’m a *nix newbie, so if it’s my lack of knowledge that’s hosing me,
please be nice and don’t flame :slight_smile:

Ok - RH Linux (2.2.12), Apache, MySQL 3.22.32.

Installed all necessary modules and rt, which works from CLI. When
loading webrt.cgi or admin-webrt.cgi from a browser, I get a 500 server
error. This is what shows up in the logs:

[Tue Sep 12 03:24:24 2000] [error] [client 20.11.25.8] Premature end of
scri
pt headers: /usr/local/rt/bin/cgi/webrt.cgi

Here’s what I added to httpd.conf:

Alias /webrt/ /usr/local/rt/lib/images/
ScriptAlias /rt/ /usr/local/rt/bin/cgi/

<Directory /usr/local/rt/bin/cgi/>
AllowOverride All
Options All ExecCGI FollowSymLinks
order allow,deny
allow from all

I also went through the past several months of the mailing list archives
and didn’t find anything. Anyone have any ideas?

Richard West mailto:richard.west@divatv.com
Sr. Systems Administrator
DivaTV Systems - Princeton, NJ http://www.divatv.com


#3

Check:
/var/log/httpd/error_log for some info.

That’s where I found this msg:
[Tue Sep 12 03:24:24 2000] [error] [client 20.11.25.8] Premature end of
script headers: /usr/local/rt/bin/cgi/webrt.cgi

Then:
“cd” to your rt installation directory, then “cd bin/cgi” and run
"./webrt.cgi" to see what happens. It should give you a more detailed
error there. Be sure to become the same user that your web server runs
under (usually the user “nobody”) when you run the cgi by hand…

Runs (apparently) ok - it asks for name/value pairs:
(offline mode: enter name=value pairs on standard input)

I think it’s just a cgi problem with apache, but I’ve tried everything I
know how to (which isn’t much)…

Thanks,
St-