Forum Moderators: phranque
output_buffering = On
output_handler = ob_gzhandler
zlib.output_compression = Off
in my website's public_html folder inside php.ini
The other night, it stopped gzipping content. I have a phpbb on the same directory and it is still gzipped (via the built in gzipping in phpbb's scripts).
On the root part of the website I cannot use the same method of gzipping for some reason.. just doesn't work. htaccess gzipping doesn't work either, I get a 500 error.
What would cause it to just stop working through my php.ini?
I do have root access to my server. Is there something I may have accidentally disabled in httpd.conf?
Apache Mod_Deflate [httpd.apache.org]
[edited by: TheMadScientist at 3:15 pm (utc) on May 8, 2008]
I think there are some good examples in the section on enabling compression, and if you are using 'virtual host' containers, you should be able to adjust settings individually per container.
I don't recall setting anything with these names before, I just loaded my php.ini one day and it worked.. then all of a sudden didn't.. so I'm not entirely sure how to update these values.
I've modified the httpd.conf file before, but no values with names similar to what you posted.. I'm a bit lost. :)
I opened up SSH and:
pico /usr/local/lib/php.ini
Changed: output_buffering from Off to On
then I moved down to:
;output_handler =
Changed to:
output_handler =ob_gzhandler
Saved.. then tested my site. gzip is now on.
Should also mention: this enables gzip on the SERVER. So if you're running phpbb (who has it enabled via script), you have to disable their gzip to get rid of the warning.