>Number: 5381 >Category: suexec >Synopsis: suexec-ution failure reports in error_log and responses are >unclear >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: change-request >Submitter-Id: apache >Arrival-Date: Sat Nov 27 02:10:01 PST 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.9 >Environment: Solaris on Intel. >Description: When suexecution of a cgi fails, the error reported to error_log and in the responses are quite unclear. A clearer message would help to focus on this issue more quickly. Especially for students which are new to cgi programming.
error_log gets a "premature end of script headers" and the response shows "internal server error please report to your sys admin". I guess suexec-condition failures could be reported more clearly to both error_log and in the internal error page sent back to the user. >How-To-Repeat: just use suexec without respecting one of the many required conditions. e.g.: writable executable or directory, and so on. >Fix: Yes, improve a little bit error_log and generated responses. This may involve having a convention between suexec and apache to report the error, whether from suexec condition or from the cgi program. e.g. suexec could always print out one char to the server, telling 'condition failed' or 'cgi launched'. Or some status number could be used for this (but what if the same is used by the cgi program). Anyway, the problem can be solved. >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include <[EMAIL PROTECTED]> in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]