This ticket is the same issue posted on the user forum here:
http://www.symfony-project.org/forum/index.php/t/11760/
In a fastCGI environment when symfony (versions 1.0.9 - 1.0.11) attempts to output the rendered symfony 404 error page, two HTTP "Status" headers are output from the framework, like so:
HTTP/1.0 404 Not Found
Status: 404
This does not seem viable in a fastCGI environment and fastCGI throws up a 500 error and reports to Apache:
FastCGI: comm with server "/var/www/eyepaste/cgi-bin/php5.fcgi" aborted: error parsing headers: duplicate header 'Status'
A work-around (as I posted in the forum) is to simply comment out the duplicate status header code in the sfController class, line 260, so sfController.class.php:260 becomes:
//$this->getContext()->getResponse()->setStatusCode(404);
This fixes the problem in this instance. (see attached patch)
Please note that this ticket is not a duplicate of ticket #669 which is dealing specifically with "Location: xxxxxxx" 302 redirects (but with the same symptom).
More information about the tested environments:
symfony 1.0.9 - 1.0.11
apache 2.2.3
suexec wrapper enabled and disabled (both fail)
fastcgi 2.5.x
php5 (5.2.0 - 5.2.5 as a cgi)
debian etch 4.0