Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27681 - apache-2.0.47 fails on distribution cgi test scripts
Summary: apache-2.0.47 fails on distribution cgi test scripts
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-31 20:39 UTC by Jeff Mitchell
Modified: 2003-09-01 08:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.