PHP - htaccess - output_buffering

I have the following code in the htaccess file in my application root to enable output buffering.

php_value output_buffering On
php_value output_handler mb_output_handler

On some servers it causes 500 internal errors, while on others it works fine. Does anyone know why this sometimes causes an error. Is there any other way to do this?

Thank!

+5
source share
3 answers

This syntax can only be used if PHP works as an Apache module.

500 errors probably appear on servers where this is not the case.

For complete validity, check the server file error.logfor a detailed error message.

+3
source

, PHP . 500,

+2

Not sure, but I think the error is caused by the first line.

Use php_flag to enable / disable True / False, for example:

php_flag output_buffering On
+2
source

All Articles