PDA

View Full Version : What do I need to use GZIP html?


Mitrofan
Wed 11th Apr '01, 12:19am
What do I need to have installed on the server to be able to use GZIP feature of VBulletin and how can I check to see it I have it already installed?

Dave#
Wed 11th Apr '01, 6:14am
Originally posted by Mitrofan
What do I need to have installed on the server to be able to use GZIP feature of VBulletin and how can I check to see it I have it already installed?

PHP needs to be compiled with zlib support

configure with-zlib

Check your php.info

Mitrofan
Wed 11th Apr '01, 11:23am
I examined php.ini and here is what I found:

One of the lines that I think has something to do with gzip output.


output_handler = ; You can redirect all of the output of your scripts to a function,
; that can be responsible to process or log it. For example,
; if you set the output_handler to "ob_gzhandler", than output
; will be transparently compressed for browsers that support gzip or
; deflate encoding. Setting an output handler automatically turns on
; output buffering.



Another line down on the page:

;extension=php_zlib.dll

Looks like I have zlib installed already and just have to activate it. From reading the comments in this file it looks like I need to set

output_handler = ob_gzhandler

My questions is this: Do I need to re-start Apache or re-boot the server for changes to take effect?

Another question: Which browsers support GZIP output?

Nicholas Brown
Thu 12th Apr '01, 11:19am
That only works if your runnin on WIndows.

it would be more helpful to post your OS, Version of PHP etc... then we'll be able to help you

Mitrofan
Thu 12th Apr '01, 11:49am
Only on Windows?

I am on Linux.

So there is not way to use gzip feature on Linux?

Nicholas Brown
Thu 12th Apr '01, 11:57am
First Install ZLib then,
Recompile php with the option --with-zlib

Mitrofan
Fri 13th Apr '01, 12:37am
Well, I just spend the better part of the day trying to configure this feature.

I first practice on the lab server, and when I finally figured our how to install everything, I installed zlib on production server.

I's great! The entire forum page now loads under 18K, while before it used to be 84K

I wonder if this zlib can work as apache module with HTML pages. Maybe some other module for Apache can do that?

This would save me alot of bandwidth. I am over my 50Gig/month limit and with this feature I may just be able to stay within the limit for now.

Great feature!