readthefuckingmanual.net

[SOLVED] Premature end of script headers: php-cgi

Error added: 2006-01-28T02:03:27Z

1 people waiting for the answer...

2 answers found.

Answer 66 (0.0% helpful)

The problem for me was that I was using suexec, and my php-cgi file wasn\'t within the suexec-docroot directory (which is usually /var/www) or below. Check /var/log/apache2/suexec.log
Permalink

Answer 162 (0.0% helpful)

Another problem was that the permissions on the actual suexec binary were wrong. I re-emerged apache and that set the permissions to what they should be.
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: