Enable GZip compression on phpBB3

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Suggested Hosts
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
iftitaj
Registered User
Posts: 638
Joined: Tue Jan 15, 2008 6:21 am
Location: Karachi, Pakistan

Re: Enable GZip compression on phpBB3

Post by iftitaj »

When I ran that tool on my forum, it shows correctly that GZip is enable. See result below:
Results for: http://www.salmankhan-fanclub.com
Web page compressed? Yes
Compression type? gzip
Size, Markup (bytes) 22,448
Size, Compressed (bytes) 4,631
Compression % 79.4
Try to run the same tool on my forum to see what it shows to you. Maybe your webhost is not supporting it.
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: Enable GZip compression on phpBB3

Post by karlsemple »

soumik wrote:I've enabled gzip compression in my forum (link is in my signature). But when I do a gzip compression test at http://www.gidnetwork.com/tools/gzip-test.php , it says it is not gzip compressed. What can be the reason behind this?

This site is not trust worthy as it says my site is using gzip when it is not :)
Image
User avatar
soumik
Registered User
Posts: 486
Joined: Tue Nov 06, 2007 7:27 pm
Contact:

Re: Enable GZip compression on phpBB3

Post by soumik »

karlsemple wrote:This site is not trust worthy as it says my site is using gzip when it is not :)
Yes. That might me it. :)
Powered by chocolate
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: Enable GZip compression on phpBB3

Post by karlsemple »

soumik wrote:
karlsemple wrote:This site is not trust worthy as it says my site is using gzip when it is not :)
Yes. That might me it. :)

It may also be a case of your host forcing your content not to be gzip compressed thus overriding your own setting in phpBB :)
Image
User avatar
soumik
Registered User
Posts: 486
Joined: Tue Nov 06, 2007 7:27 pm
Contact:

Re: Enable GZip compression on phpBB3

Post by soumik »

karlsemple wrote:It may also be a case of your host forcing your content not to be gzip compressed thus overriding your own setting in phpBB :)
Yes, you are right. I contacted my host and they told that GZIP compression is disabled for my account. :(
Powered by chocolate
iftitaj
Registered User
Posts: 638
Joined: Tue Jan 15, 2008 6:21 am
Location: Karachi, Pakistan

Re: Enable GZip compression on phpBB3

Post by iftitaj »

With my statistics from the above link, I can say GZip is very handy thing. My 22KB page was compressed to only 4.5KB - see the comparison & think about how fast page loads with GZip. :D
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: Enable GZip compression on phpBB3

Post by karlsemple »

iftitaj wrote:With my statistics from the above link, I can say GZip is very handy thing. My 22KB page was compressed to only 4.5KB - see the comparison & think about how fast page loads with GZip. :D

do not confuse the smaller size with faster page loading...it has to be decompressed by the client first :) It is to save bandwidth more than anything else, but the offset is that it uses higher cpu load both server and client side :)
Image
iftitaj
Registered User
Posts: 638
Joined: Tue Jan 15, 2008 6:21 am
Location: Karachi, Pakistan

Re: Enable GZip compression on phpBB3

Post by iftitaj »

karlsemple wrote:
iftitaj wrote:With my statistics from the above link, I can say GZip is very handy thing. My 22KB page was compressed to only 4.5KB - see the comparison & think about how fast page loads with GZip. :D
do not confuse the smaller size with faster page loading...it has to be decompressed by the client first :) It is to save bandwidth more than anything else, but the offset is that it uses higher cpu load both server and client side :)
Oh thats what I meant to say. But overall page will load faster when the data is more than 5 times compressed. If you go through processing data (compressing/decompressing) it will be much faster than saving 5 times bandwidth. In comparison, bandwidth is most often the bottleneck not processing power. So overall, I guess, page will LOAD faster - specially for dialup users. :)
User avatar
soumik
Registered User
Posts: 486
Joined: Tue Nov 06, 2007 7:27 pm
Contact:

Re: Enable GZip compression on phpBB3

Post by soumik »

iftitaj wrote: In comparison, bandwidth is most often the bottleneck not processing power. So overall, I guess, page will LOAD faster - specially for dialup users. :)
If you are on shared hosting, CPU usage plays a very important role. Most hosts will give you a warning that your account is using too much CPU, and tell you to curb CPU usage.
Powered by chocolate
iftitaj
Registered User
Posts: 638
Joined: Tue Jan 15, 2008 6:21 am
Location: Karachi, Pakistan

Re: Enable GZip compression on phpBB3

Post by iftitaj »

soumik wrote:
iftitaj wrote: In comparison, bandwidth is most often the bottleneck not processing power. So overall, I guess, page will LOAD faster - specially for dialup users. :)
If you are on shared hosting, CPU usage plays a very important role. Most hosts will give you a warning that your account is using too much CPU, and tell you to curb CPU usage.
Thats obvious. If your webhost limits something then you are also restricted to use those features. But if your webhost has no problem then enabling GZip is best option. I'm on shared hosting but am easily enjoying GZip & even then I hardly see CPU usage over 50%. thats why I luv my hosts. :)
User avatar
michaelo
Registered User
Posts: 1292
Joined: Thu Jun 13, 2002 3:49 am
Location: Dublin, Ireland
Name: Michael O'Toole
Contact:

Re: Enable GZip compression on phpBB3

Post by michaelo »

Just a note re testing Gzip... If the site used to test gzip indicated is not enabled...
Try using a different link, for example, a link to an actual post... contents in your .htaccess file can cause tests to return false...
Real world example:
http://www.mysitel.com/ (may not work for the test)...
http://www.mysitel.com/forum/index.php (should work)...
There are various reason for this but that's another story.. :mrgreen:
Contributions: Mods & Styles Extensions
(site is down): Kiss Portal Engine
iftitaj
Registered User
Posts: 638
Joined: Tue Jan 15, 2008 6:21 am
Location: Karachi, Pakistan

Re: Enable GZip compression on phpBB3

Post by iftitaj »

^ Didn't know that! :o
Thanks Michaelo! :)
21846657
Registered User
Posts: 4
Joined: Fri May 14, 2010 2:26 pm

Re: Enable GZip compression on phpBB3

Post by 21846657 »

michaelo wrote:Just a note re testing Gzip... If the site used to test gzip indicated is not enabled...
Try using a different link, for example, a link to an actual post... contents in your .htaccess file can cause tests to return false...
Real world example:
http://www.mysitel.com/ (may not work for the test)...
http://www.mysitel.com/forum/index.php (should work)...
There are various reason for this but that's another story.. :mrgreen:
Ah, this explains something to me. Try to find out that story. :D

Thanks for the info.
Locked

Return to “[3.0.x] Support Forum”