| Article: |
Apache Web-Serving with Mac OS X: Part 2 | |
| Subject: | Premature end of script headers | |
| Date: | 2003-03-21 06:41:28 | |
| From: | anonymous2 | |
| When I excute any script I get a Internal Server Error. Looking at the logs shows Premature end of script headers does anyone know what this means? | ||
Showing messages 1 through 3 of 3.
-
Premature end of script headers
2003-06-02 12:44:28 anonymous2 [View]
-
Premature end of script headers
2003-12-15 17:09:44 anonymous2 [View]
Can I save to ASCII text using appleworks or anything other than BBEdit?
And what exactly are 'Unix Breaks'?
Sorry - I'm kinda new to this
-
Premature end of script headers
2003-04-30 04:32:55 anonymous2 [View]
You're probably executing scripts that try to write output to the browser. You should include a 'print "Content-Type: text/html\n\n"' in your script before writing anything else as output.



Make sure you have Unix line breaks.
Make sure the text is ASCII.
And (this is the one that hung me up, I'm ashamed to admit) make sure the perl script points to #!/usr/bin/perl
not #!/usr/local/bin/perl
Confirm this with whereis perl in the terminal
Good Luck