Eve Support Community
Forums
Resources
Development, & Software Talk
Premature end of script headers:|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Groupee Newbie |
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? |
||
|
|
Groupee VIP |
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 |
|||
|
|
Groupee Newbie |
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 |
|||
|
![]() |
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! |
|||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|
Eve Support Community
Forums
Resources
Development, & Software Talk
Premature end of script headers:
