Hello Aaron,

Tuesday, January 01, 2002, 10:46:19 AM, you wrote:

AK> The following is the message in error_log:
AK> [Mon Dec 31 10:12:10 2001] [error] [client 131.194.131.60] Premature end
AK> of script
AK>  headers: /users/akonstam/Local/HTML-Documents/cgi-bin/test.cgi

AK> Now I can't see that the error message is very helpfull except:
AK> 1. This is the error you get when the cgi script cannot be executed.
AK> 2. The error goes away when suexec is disabled.

AK> If you know where a more useful message appears let me know. Or if you
AK> know how to fix this.

Well, we always compile Apache from source here, and specify a
separate logfile for suexec.  However, IIRC, Apache should be logging
suexec errors to the main error_log file.  Try checking there for more
descriptive errors messages, similar to the following:

[2001-12-29 18:09:52]: error: target uid/gid (502/502) mismatch with
  directory (519/519) or program (519/519)

Other things suexec doesn't like are setuid or setgid scripts and
scripts outside of "safe" docroots.

Not knowing much about the default Red Hat version of Apache, you
might want to look into how it was compiled, paying specific attention
to:

--suexec-userdir=DIR

More info wrt suexec configuration is available at
http://httpd.apache.org/docs/suexec.html#install .

If you find that the RHL compile-time settings for suexec don't meet
your requirements, you can download the same version of the Apache
source that you are currently using, compile it with the necessary
suexec options for your applications, and replace only the RHL suexec
binary with the one you just compiled.

-- 
Best regards,
 Brian Curtis



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to