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 :)

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.

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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