0

I am using a shared hosting service to host my application which has output_buffering enabled on it. It seems Yii needs output_buffering disabled as a prerequisite.

But as I'm using a shared host, I can't disable it. So what should I do to make my Yii application work on the same host?

Suhaib Janjua
  • 3,538
  • 16
  • 59
  • 73
Satyajit
  • 1
  • 2

1 Answers1

0

Try Using .htcaccess if PHP is running as an Apache module.

<IfModule mod_php5.c>
  php_value include_path ".:/usr/local/lib/php"
  php_admin_flag output_buffering Off
</IfModule>
<IfModule mod_php4.c>
  php_value include_path ".:/usr/local/lib/php"
  php_admin_flag output_buffering Off
</IfModule>

Check this answer PHP - htaccess - output_buffering

Community
  • 1
  • 1
chapskev
  • 972
  • 9
  • 27
  • Unfortunately PHP is not running as an Apache module, so it is throwing 500 error. :( – Satyajit Apr 17 '15 at 12:49
  • @Satyajit are you getting any error messages without try to turn off the output buffer and which version of YII are you using – chapskev Apr 17 '15 at 18:27