Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

note: There is a similar question but that's about Apache.

The following code

echo '.';

is fully 'working' under nginx 0.7.67 where 'working' means the php redirect is working fine without errors in the error log or displaying the ..

How can i force nginx or php-fpm to throw the PHP Warning: Cannot modify header information - headers already sent by warning?

share|improve this question
up vote 3 down vote accepted

You should check value of output_buffering parameter in your php.ini file.

php.ini #output-buffering

share|improve this answer
Thank you, it's totally my fault. There's a framework on two different servers (Apache/nginx) and i thought there's something with nginx so i didn't checked my php.ini :( Thank you, again! – fabrik Aug 1 '12 at 12:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.