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.
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...
That's how they're distributed.