Forum Moderators: coopster & phranque

Message Too Old, No Replies

Canīt get it: Premature end of headers

premature end of headers, error 500

         

tyler23

10:12 am on Feb 18, 2006 (gmt 0)



Hello there,

Iīm tryin hard to get my script on my new webserver to work but I canīt get behind the "premature end of headers" error when executing the script.

One thing first, the strange thing is the script used to work from time to time but 99% of the time itīs not working and I donīt know how to find this error.

I have tried a lot of things (googling for hours) including everything the apache docu said to this but I canīt get it to work. I am 100% sure the script works as I used it a long time on different servers so it must be a mistake on the server side configuration.

Permissions are set, path to perl interpreter is ok, the files are uploaded correctly and other parts of the script work fine. I have tried to run that part of the script from the shell and as far as I can tell the headers get read correctly.

Suexec is used on my server, maybe the restrictions there are a problem?

I have noticed suexec is installed different on this server as I can run it from the command line only with "suexec2" and not with "suexec".

The MaxClient settings also have been raised. Iīm not an expert for apache so could anyone help me solving this?

Thx for help!

regards

perl_diver

7:52 pm on Feb 18, 2006 (gmt 0)

10+ Year Member



It's a cgi script I guess? Add the:

use CGI::Carp qw/fatalsToBrowser/;

module at the beginning of the script and see if that helps lead to the problem.