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


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunitySetup and InstallationInstallation and Setup (Moderators: scott, DanO, Marty)Premature end of script headers error ....
Pages: [1]   Go Down
Print
Author Topic: Premature end of script headers error ....  (Read 489 times)
0 Members and 1 Guest are viewing this topic.
DonnaNJ
New Member
*

Karma: 0
Offline Offline

Posts: 0

web developer


WWW
« on: May 26, 2006, 10:55:00 PM »

I get this on the screen:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@xxx.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

>>>>>>>>>>>

The server log then says Premature end of script headers.

I transferred everything over ASCII, I changed permissions, path to perl is right (have other perl scripts in same cgi-bin) ... what else ?

------------------
DBK Web development, LLC

Logged

DBK Web development, LLC
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: May 27, 2006, 02:01:00 AM »

** The server log then says Premature end of script headers **

I'm afraid all that means is the script failed to run but says nothing about why. If no detailed error message was recorded in the logs, someone may need to run the script from the command line (telent, SSH, etc.) to see what error(s) Perl reports.

JMO

Dan O.

------------------

Logged
DonnaNJ
New Member
*

Karma: 0
Offline Offline

Posts: 0

web developer


WWW
« Reply #2 on: May 28, 2006, 04:35:00 PM »

My host isn't responding ...

Is there any thing else I can do  ... some kind of write statements or something ?

I need to get this working ?

Thanks

Donna

------------------
DBK Web development, LLC

Logged

DBK Web development, LLC
DonnaNJ
New Member
*

Karma: 0
Offline Offline

Posts: 0

web developer


WWW
« Reply #3 on: May 28, 2006, 04:36:00 PM »


BTW - I tried setting the base dir directly.

I tried both /home/mydomain/public_html/cgi-bin

and
www.mydomain.com/cgi-bin

neither worked...

DOnna

------------------
DBK Web development, LLC

Logged

DBK Web development, LLC
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #4 on: May 28, 2006, 05:14:00 PM »

** I tried both /home/mydomain/public_html/cgi-bin and ww.mydomain.com/cgi-bin **

Until you know the cause it's pointless to guess IMO. (the latter isn't even a server path like is required for that variable, but instead a web address.)


** Is there any thing else I can do? **

Do you have telent, SSH, etc. access to the server?

Have you tired running the debug.pl script to see what it reports?

Dan O.

------------------

Logged
DonnaNJ
New Member
*

Karma: 0
Offline Offline

Posts: 0

web developer


WWW
« Reply #5 on: May 28, 2006, 06:23:00 PM »


Same error:

[Sun May 28 18:20:12 2006] [error] [client 67.82.180.95] Premature end of script headers: /home/dbkonlin/public_html/cgi-bin/debug.pl

PERL version 5.8.6
Path to PERL /usr/bin/perl

??

No I don't have SSH or telnet access at the moment - I have two requests in ... but haven't heard anything.

Thanks

Donna

------------------
DBK Web development, LLC

Logged

DBK Web development, LLC
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #6 on: May 28, 2006, 08:47:00 PM »

Have you made sure the shebang is correct and that the files were uploaded in ascii model and have the correct permissions?

Other than that, I guess you'll just have to wait for your host's support.

Dan O.

------------------

Logged
DonnaNJ
New Member
*

Karma: 0
Offline Offline

Posts: 0

web developer


WWW
« Reply #7 on: May 31, 2006, 10:48:00 PM »

I got ssh access now and I can run it in line mode.

all the scripts debug.pl, calendar.pl and calendar_admin.pl

all work in line mode.

But when I try to go through the browser I get the pre-mature termination of headers error (or something like that)

I'll probably delete all and do another install and see what happens. (I did have this working once - but I got the fields messed up - so I reinstalled ...)

thanks

Donna

------------------
DBK Web development, LLC

Logged

DBK Web development, LLC
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #8 on: June 01, 2006, 12:54:00 AM »

** I did have this working once **

How exactly did you achieve that?

** all work in line mode. But when I try to go through the browser I get the pre-mature termination of headers error **

That usually indicates incorrect permissions.

Dan O.


------------------

Logged
Pages: [1]   Go Up
Print
Jump to: