Bug 1031

Summary: CGI programs don't work
Product: [Retired] Red Hat Secure Web Server Reporter: mcornick
Component: securewebAssignee: David Lawrence <dkl>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 2.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-08-16 18:50:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mcornick 1999-02-03 01:25:08 UTC
CGI programs which live in /home/httpd/cgi-bin and are run
via http://my.server.name/cgi-bin/xxxxxxx fail. Every
attempt produces a 500 Internal Server Error, "Premature end
of script headers". I have checked this with anlgform.cgi
(part of the analog package), cachemgr.cgi (part of the
squid package), htsearch (part of the htdig package) and a
few scripts of my own writing; everything fails. The
behavior is the same on both the secure and unsecure ports.
This is with the standard secureweb conf files; the only
changes I have made are to enable mod_php3 and mod_perl. I
am using secureweb-2.0-2libc6 on Red Hat 5.2.

Comment 1 mcornick 1999-02-03 20:55:59 UTC
to clarify: in http://my.server.name/cgi-bin/xxxxxxx, "xxxxxxx" is the
name of the CGI program. Sorry if this was unclear.

Comment 2 mcornick 1999-02-06 16:19:59 UTC
Hmmm... CGI stuff runs OK if I disable mod_perl. I can use one or the
other, but not both.

When mod_perl is enabled, I get errors such as this in
/var/log/httpd/error_log:

[Sat Feb  6 11:11:09 1999] [notice] Red Hat Secure/2.0 (Unix)
mod_perl/1.16 PHP/3.0.5 mod_ssl/2.0.15 SSLeay/0.9.0b configured --
resuming normal operations
[Sat Feb  6 11:11:09 1999] [notice] httpsd: child pid 22249 exit
signal Segmentation fault (11)

which don't show up if mod_perl is disabled.

Comment 3 Preston Brown 1999-08-16 18:50:59 UTC
Get the updated mod_perl and perl RPMs for Red Hat Linux 5.2 and/or
Secure Web Server 2.0, this will solve your problem.