You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Roy T. Fielding" <fi...@kiwi.ICS.UCI.EDU> on 1997/03/29 07:20:41 UTC

Re: Apache error - premature error - a solution (fwd)

>A lot of messages handle about the problem:
>Premature end of script headers
>
>This is caused by a call in mod_cgi.c, line 322 (of 547)
>the code is:
>=09 call_exec(r, argv0, env, 0);
>the "0" means "no shell command".
>So every shell command is just called by a system exec call.
>This does not work e.g. on SCO Unix Systems, maybe also not
>on a lot of other systems. Normally you should span a shell
>command to execute the given command. It is only working
>if you call a binary program, as a compiled C program.
>To make apache work for these systems,
>just change the "0" to "1", as in:
>=09 call_exec(r, argv0, env, 1);
>Call make, and use the new httpd.
>
>Dr. W. Willmertinger
>
>CONSYS Gesellschaft f=FCr Softwaretechnologie und Systementwicklung mbH
>Dr. Walter Willmertinger
>Landsberger Strasse 402   EMail: willmertinger@consys.de
>81241 Muenchen            Phone: +49 89 580 81 81
>Germany                     Fax: +49 89 588 77 6
>WWW-Homepage: http://www.consys.de

As near as I can tell, the only reason that the above would "fix"
the problem is if the scripts did not have execute permission for
the web server owner.  Making the change above would be a bad idea.

.....Roy