Google Groups Home
Help | Sign in
Premature End of Script Headers Mystery
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
matt  
View profile
 More options Sep 29 2006, 1:37 pm
Newsgroups: comp.infosystems.www.authoring.cgi
From: "matt" <leonha...@hawaii.rr.com>
Date: Fri, 29 Sep 2006 11:37:16 CST
Local: Fri, Sep 29 2006 1:37 pm
Subject: Premature End of Script Headers Mystery
Hello all,

So, I'm migrating a site from my test-server (Powerbook running
Apache/Darwin BSD) to my web host and all my CGI scripts are giving me
that error.  The header error is also the only error that's showing up
in the error_log.

I've checked all the usual suspects:

file permissions (775)
syntax (perl -Tc is clean)
malformed headers (using CGI.pm->header(), so not likely)
script runs fine from command line on web server (which I believe rules
out binary transfer and carraige returns)

The site is on a managed server which has an automated setup process,
so its highly unlikely that this is a bad ScriptAlias directive.

Any thoughts?

Matt

--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.

HOW TO POST to comp.infosystems.www.authoring.cgi:
http://www.thinkspot.net/ciwac/howtopost.html


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gunnar Hjalmarsson  
View profile
 More options Sep 29 2006, 3:17 pm
Newsgroups: comp.infosystems.www.authoring.cgi
From: Gunnar Hjalmarsson <nore...@gunnar.cc>
Date: Fri, 29 Sep 2006 21:17:24 +0200
Local: Fri, Sep 29 2006 3:17 pm
Subject: Re: Premature End of Script Headers Mystery

matt wrote:
> I've checked all the usual suspects:

> file permissions (775)

<snip>

> The site is on a managed server which has an automated setup process,

One thought: If suEXEC is enabled, the group must not have write access.
Have you tried permissions 755?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.

HOW TO POST to comp.infosystems.www.authoring.cgi:
http://www.thinkspot.net/ciwac/howtopost.html


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
n...@asgard.webthing.com  
View profile
 More options Sep 29 2006, 5:10 pm
Newsgroups: comp.infosystems.www.authoring.cgi
From: n...@asgard.webthing.com ()
Date: Fri, 29 Sep 2006 15:10:35 CST
Local: Fri, Sep 29 2006 5:10 pm
Subject: Re: Premature End of Script Headers Mystery
In article <1159526947.209033.142...@i3g2000cwc.googlegroups.com>,
        "matt" <leonha...@hawaii.rr.com> writes:

> So, I'm migrating a site from my test-server (Powerbook running
> Apache/Darwin BSD) to my web host and all my CGI scripts are giving me
> that error.  The header error is also the only error that's showing up
> in the error_log.

And in the suexec log?

> file permissions (775)

Too permissive.  A security-minded server will refuse to run it.

Also check other 'usual suspects' such as SELinux.

--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.prenhallprofessional.com/title/0132409674

--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.

HOW TO POST to comp.infosystems.www.authoring.cgi:
http://www.thinkspot.net/ciwac/howtopost.html


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
J. Moreno  
View profile
 More options Oct 1 2006, 8:15 pm
Newsgroups: comp.infosystems.www.authoring.cgi
From: J. Moreno <pl...@newsreaders.com>
Date: 02 Oct 2006 00:15:21 GMT
Local: Sun, Oct 1 2006 8:15 pm
Subject: Re: Premature End of Script Headers Mystery

n...@asgard.webthing.com () wrote:
> In article <1159526947.209033.142...@i3g2000cwc.googlegroups.com>,
>         "matt" <leonha...@hawaii.rr.com> writes:
> > So, I'm migrating a site from my test-server (Powerbook running
> > Apache/Darwin BSD) to my web host and all my CGI scripts are giving me
> > that error.  The header error is also the only error that's showing up
> > in the error_log.

> And in the suexec log?

> > file permissions (775)

> Too permissive.  A security-minded server will refuse to run it.

> Also check other 'usual suspects' such as SELinux.

I recently saw a similar problem, where the server was refusing to run a
script because the DIRECTORY it was in was world-writeable (how the
directory became world writable is another question....).

--
J. Moreno


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google