Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 27681

Summary: apache-2.0.47 fails on distribution cgi test scripts
Product: Gentoo Linux Reporter: Jeff Mitchell <quixoticsycophant>
Component: [OLD] ServerAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED INVALID    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jeff Mitchell 2003-08-31 20:39:46 UTC
Reproducible: always
1. emerge apache-2.0.47
2. /etc/init.d/apache2 start
3. http://<...>/cgi-bin/test-cgi
4. http://<...>/cgi-bin/printenv

Results:
[Sun Aug 31 23:26:29 2003] [error] [client 127.0.0.1] Premature end of script
headers: test-cgi
[Sun Aug 31 23:26:40 2003] [error] [client 127.0.0.1] Premature end of script
headers: printenv

Probably the same as Bug #13152, which probably wasn't fixed.

I am certain I started with a clean install (rm -rf /etc/apache2) each time
I reproduced this.

The same errors are reported multiple times on the forums, although most
think it's a perl problem (which it isn't).

My ruby cgi scripts give the same error; these scripts work with 1.3.28.
Comment 1 Jeff Mitchell 2003-09-01 07:35:18 UTC
Oops this was just a permissions problem.

On one hand it's surprising that the test scripts don't work out of the
box.  But on the other hand it's probably a security issue having
executable scripts lying there.

The real problem is that apache 2 is NOT telling me "permission denied"
as apache 1.3 does.

So I consider this an apache 2 problem with not giving the proper
errors in the log.  And this is why nobody can figure out what's wrong
with their mod_perl or whatever -- because no useful errors are reported
by apache 2.

Sorry to waste your time...
Comment 2 Donny Davies (RETIRED) gentoo-dev 2003-09-01 08:37:55 UTC
That's how they're distributed.