>Number: 5461 >Category: general >Synopsis: CGIs run in /home/httpd/cgi-bin, but not anywhere else >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sat Dec 11 20:10:01 PST 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.9 >Environment: Linux 2.3.13 (Apache was pre-compiled, however.) >Description: After upgrading apache and making the necessary changes to httpd.conf, none of the previously-working CGI's on the system would work unless they were located in /home/httpd/cgi-bin. I can copy a working cgi from /home/httpd/cgi-bin to a user's cgi-bin directory, and it returns the following error (on the browser):
-------------------------------- (500 Internal Server Error) Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. ------------------------------------ In the error log, I see the following line: [Sat Dec 11 20:49:24 1999] [error] [client xx.xx.xx.xx] Premature end of script headers: /home/user/public_html/cgi-bin/xx.cgi Here is a copy of the relevant parts of my httpd.conf: --------------------------- LoadModule cgi_module modules/mod_cgi.so AddModule mod_cgi.c User www Group www <Directory /home/httpd/cgi-bin> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory> <Directory /home/*/public_html/cgi-bin> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory> AddHandler cgi-script .cgi .sh .pl -------------------------- >How-To-Repeat: Every working cgi I copy from /home/httpd/cgi-bin to /home/user/public_html/cgi-bin will not work. All permissions are set exactly as they were with Apache 1.3.6, which worked just fine. I can send you the URL for an example, but this is the case for every cgi on the system. >Fix: Go back to 1.3.6 for now, I guess. :/ >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! ]