Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 22, 2012, 05:05:42 AM

Pages: [1]   Go Down
  Print  
Author Topic: Premature end of script headers  (Read 1797 times)
everythingafrican
Newbie
*
Offline Offline

Posts: 2


« on: January 23, 2006, 06:27:33 AM »

I have two perl scripts (office.cgi and store.cgi) that are obviously critical to the operation of my online store. The problem is that they will quit working unexpectedly, abruptly, with no provocation whatsoever. It really puzzles me - office.cgi is working perfectly for weeks, and then one day it just wakes up and decides that it's not going to work anymore! The corresponding error usually displayed in the server log is "Premature end of script headers"

Please assist if you know how I can solve this problem and make my perl scripts more predictable/reliable.

Thanks.
Logged
Monica
Pong! (the videogame) Master
*****
Offline Offline

Posts: 28


r0xx0rs your s0xx0rs


« Reply #1 on: January 23, 2006, 07:06:56 AM »

I have two perl scripts (office.cgi and store.cgi) that are obviously critical to the operation of my online store. The problem is that they will quit working unexpectedly, abruptly, with no provocation whatsoever. It really puzzles me - office.cgi is working perfectly for weeks, and then one day it just wakes up and decides that it's not going to work anymore! The corresponding error usually displayed in the server log is "Premature end of script headers"

Please assist if you know how I can solve this problem and make my perl scripts more predictable/reliable.

Thanks.

Do you ever make any changes to your site that include re-uploading those scripts? Have you checked the permissions for the file when this happens as well? I'd probably suggest sending a ticket to support@lunarpages.com if this is a recurring issue, as the support team can help you better one on one with a recurring issue that needs investigation like this.
Logged

.•º¨٭¨º•{ Monica }•º¨٭¨º•.

Superman - "Self-help books? You don't seem the type."

Randal Savage - "I read whatever I can...Anyways, I've got issues, what with me destroying the world and all."
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5196



« Reply #2 on: March 24, 2006, 01:14:49 PM »

I've seen this kind of error message when a blank line was accidentally appended to the end of a shell script (Perl, PHP, etc.). As mentioned before, did you upload a script just before it stopped working? You might double check (FileManager > Show File) if there are one or more blank lines on the end of the script.

Phil
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
Pages: [1]   Go Up
  Print  
 
Jump to: