Eve For Enterprise    Eve Support Community    Forums  Hop To Forum Categories  Resources  Hop To Forums  Development, & Software Talk    Premature end of script headers:

Moderators: Mark Badolato
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Groupee Newbie
Posted
ERROR 500
Premature end of script headers: hello.cgi

I see this error message this all over the 'net, and I've fixed the obvious (chmod 777 for the directory and the objects, made sure the...
#!/usr/bin/perl
print "Content-type: text/html\n\n";

...is followed by a blank line.

The script works from a command line but this error comes back from a browser.

This is RedHat9 ... am I missing something in either the perl or httpd config, maybe?

Add'l info / fyi... i used unzip to create these objects w/in RH9/linux.

Is there a utility that would show bad line endings?
 
Posts: 2 | Registered: January 26, 2005Reply With QuoteEdit or Delete MessageReport This Post
Groupee VIP
Picture of Ron M
Posted Hide Post
I would say that your Perl is not installed correctly. If you are seeing the the code, then Apache doesn't know how to run Perl scripts.

You can get more help with UBB.classic installation at http://www.ubbcentral.com/ubbclassic
 
Posts: 2218 | Location: Des Moines, IA | Registered: November 24, 2001Reply With QuoteEdit or Delete MessageReport This Post
Groupee Newbie
Posted Hide Post
I am getting the same error code in my error log - Premature end of script headers: hello.cgi

I think it might be an upload issue. My IT guy can upload the same file (FormMail.cgi) and it works fine. However, I can download the same file from the FTP site, change the domain name to the appropriate domain, upload it to another FTP site and it won't work.

Should I upload in automatic, text, or binary mode? In what format should I upload the file -- text, raw data, MacBinary III, or BinHex?


Tennessee Weblady
 
Posts: 1 | Location: Knoxville TN | Registered: December 28, 2005Reply With QuoteEdit or Delete MessageReport This Post

Posted Hide Post
If you're running suexec and your script is 777 it won't run. Your permissions are supposed to be 755. Same for the directory. The file should be in text.


---------------------------
Go Sox!
 
Posts: 12040 | Registered: March 12, 1999Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

Eve For Enterprise    Eve Support Community    Forums  Hop To Forum Categories  Resources  Hop To Forums  Development, & Software Talk    Premature end of script headers: