[cgiirc-general] Premature end of script headers
Brought to you by:
dgl
|
From: Jordan M. <jo...@vi...> - 2005-04-28 19:06:15
|
Greetings! I realize that this is not a problem with CGI:IRC directly, but I found this problem while attempting to install CGI:IRC and it's preventing me from using it. I'm running a CentOS Linux (RHEL clone) system with the default apache install (apache 2) I have perl installed and the script I'm attempting to run works perfectly from the command line, but whenever I try to hit it from a browser, I get a 500 Internal server error. My error_log states "Premature end of script headers: test.pl" The script was written with the linux command-line vi editor, so this is not a windows character issue. I've tried all kinds of various permissions... none seem to work. I've tried several extensions, .cgi, .pl, etc. No effect. Here's a copy of the test.cgi script I'm trying to run: -------------------------- #! /usr/bin/perl -w $|++; print "Content-type: text/html\n\n"; use CGI; print "hello world!"; -------------------------- The only thing I can figure at this point is that it's an apache config problem, but I've read their documentation on that and have checked the things they mention. (Perl path - running the script both with perl in front of the script and without perl in front of the script, etc etc etc.) I've run out of things to try. Can anyone here offer assistance on where to look next? The script is being run in a VirtualHost with a ScriptAlias for the CGI part. I'd very much appreciate any suggestions! Thanks! -- Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ jo...@vi... |