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

I installed PHP5 on my debian lenny system as cgi. Now I found that flush() in php is only working for php installed as module. Anyone know how to (re)install php5 as module? (apache2)

Thanks :)

share|improve this question
up vote 0 down vote accepted

Just copy and paste the following.

sudo -i
aptitude -y remove php5-cgi
aptitude -y install libapache2-mod-php5
/etc/init.d/apache2 restart

and it should be done. You will be asked for a password.

share|improve this answer

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.