View Single Post
Old 02-28-2004, 03:06 AM  
hanii
Confirmed User
 
Join Date: Mar 2002
Location: Moon
Posts: 449
server gurus please help! - Premature End of Script Headers

apache 2.0.46 (rhel es 3.0)

I am trying to run a perl script on my server, but when I try to run it via a web browser I get "Internal Server Error." The server error log says "premature end of script headers." The permissions are 755 on the cgi-bin directory and the script. This is the script i'm trying to run:

#!/usr/bin/perl -w

print "Content-type: text/html\n\n";

print "Hello, world.\n";


This is the directive I have in my httpd.conf file:

Directory "/home/users/*/www/cgi-bin">
Options ExecCGI
/Directory>
(removed '<' for banned word)

Anyone know what the problem could be?

Last edited by hanii; 02-28-2004 at 03:10 AM..
hanii is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote