php forum
php mysql forum
php mysql smarty
 
Topic Options
#72864 - 06/11/01 04:26 PM Speed up web pages to the end user
1QuickSI Offline
Coder

Registered: 06/10/01
Posts: 705
Loc: CT
_________________________
...Steven
Hostboard.com
Running UBB v6.1.0.4
Doing what NO other UBB in the world is doing.
The first & only production UBB powered by MySQL.

Top
Buy Stuff!
#72865 - 06/11/01 05:38 PM Re: Speed up web pages to the end user
Charles Capps Offline
Admin Emeritus

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
If you have a dedicated box, and can figure out how to get mod_gzip to do its thing with .cgi output, then by all means, compile that baby in! It's a Good Thing. smile
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#72866 - 06/11/01 08:29 PM Re: Speed up web pages to the end user
jordo Offline
Moderator / Developer

Registered: 08/05/00
Posts: 830
i had seen this mentioned before but i never realized it could get compression this good:
Quote:
quote:


hehe time to beg the host...
_________________________
jordo

Top
#72867 - 06/11/01 10:06 PM Re: Speed up web pages to the end user
qasic Offline
Developer

Registered: 01/01/01
Posts: 1930
Loc: Surrey, BC, Canada
It's a great module! Should be on every server.

q
_________________________

Top
#72868 - 06/11/01 10:27 PM Re: Speed up web pages to the end user
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
doesn't appear to run on win2k/IIS, just apache...:(
_________________________
- Allen wavey
- What Drives You?

Top
#72869 - 06/11/01 11:03 PM Re: Speed up web pages to the end user
1QuickSI Offline
Coder

Registered: 06/10/01
Posts: 705
Loc: CT
WElp, I down loaded the program and edited the httpd.conf file with the load line and their configuration. Now waiting back on an e-mail as I am a bit lost on the rest of their instructions not to mention they run a UBB system so I think they should ahve the "optimum" setup. Will report back for everyone ocne I get more info smile
_________________________
...Steven
Hostboard.com
Running UBB v6.1.0.4
Doing what NO other UBB in the world is doing.
The first & only production UBB powered by MySQL.

Top
#72870 - 06/12/01 03:18 AM Re: Speed up web pages to the end user
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
Quote:
quote:
Of course, we have the ISAPI compression module anyway which is faster laugh

Just a thought smile
_________________________
http://www.iamcal.com

Top
#72871 - 06/12/01 04:44 PM Re: Speed up web pages to the end user
wluke Offline
Junior Member

Registered: 05/02/01
Posts: 4
This will also save you bandwidth costs and decrease your monthly expenses.

We implemented this in our community section last month and experienced a 50% decrease in bandwidth usage along with a 10% increase in traffic.

Of course your mileage may vary depending on graphics (which aren't compressed) and other files (i.e. zip). Over all though you should see a noticeable drop in bandwidth usage.

Top
#72872 - 06/12/01 06:52 PM Re: Speed up web pages to the end user
hmiguelito Offline
Member

Registered: 06/06/01
Posts: 102
i see
oh, r u vBull's Wayne Luke? welcome laugh

Top
#72873 - 06/12/01 09:14 PM Re: Speed up web pages to the end user
wluke Offline
Junior Member

Registered: 05/02/01
Posts: 4
Quote:
quote:


Actually I am. I do some support work for them. However that isn't why I came here and I will most likely never mention the software here.

I am more of SitePoint's Wayne Luke and charged with building the community on that site. In doing so, I visit a lot of different communities and work to build the best one within my abilities. My goals work with the goals of this site here. We are all in the business of building Web based communities. The software used underneath those communities doesn't really matter, it is the software in your head that will determine whether you succeed or not.

Top
#72874 - 06/12/01 09:32 PM Re: Speed up web pages to the end user
navaho Offline
Veteran

Registered: 10/05/00
Posts: 2518
Loc: navahoville! :D
1QuickSI let me give you a few notes on my own experiences with mod_gzip ( from http://www.remotecommunications.com/apache/mod_gzip/)

In testing on a RH6.2 server (my own kernel) Apache 1.3.17/mod_gzip/mod_perl 1.25/mod_php/mod_ssl:

HTML squished 80 to 85%
.jpg is already compressed. Waste of recources enabling for .jpg
.gif will squish but in Netscape it made a dead image. Ie worked fine.

.cgi stuff works well also, except the UBB. frown The pages load quick and fast but I had a problem with any pages involving a refresh. In other words after you post you get the refresh screen that should then bring you back to your post. It didn't refresh with mod_gzip enabled for .cgi pages. Don't know why.

.php is iffy in my book. I tried with and without dechunking. Some pages worked, some gave me a doc contains no data error.

I'll be honest I did not have the time to fool around with it and figure out why the above behaviours were displayed. I also did not have the time to config around certain browsers. I also was using the version previous to the current version when I was testing. Maybe some of it is fixed now in this newer release.

That said I have been running the latest version, enabled for the html pages only, on Infopop.com for a week with no complaints or comments at all. Too soon to know accurately if it made any real impact on bandwidth.

edit - have not tried mod_gzip yet with SSL enabled.

<FONT COLOR="#000000" SIZE="1">[ June 12, 2001 09:33 PM: Message edited by: Ultimate navaho ]</font>
_________________________
Picture perfect penmanship here.

Top
#72875 - 06/13/01 12:56 PM Re: Speed up web pages to the end user
1QuickSI Offline
Coder

Registered: 06/10/01
Posts: 705
Loc: CT
wluke & Ultimate navaho, I would like to compare some of the settings.

I have the LoadModule placed at the very end of the list. Even after the bracketed commands (<xxx>) then I have the AddModule command line also at the end of that section followed by;

# [ mod_gzip configuration ]
mod_gzip_on Yes
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 100000
mod_gzip_keep_workfiles No
mod_gzip_temp_dir /tmp
mod_gzip_dechunk Yes
mod_gzip_item_include file .htm$
mod_gzip_item_include file .html$
mod_gzip_item_include file .php$
mod_gzip_item_include file .pl$
mod_gzip_item_include file .cgi$
mod_gzip_item_include mime text/.*

I am also on the mod_gzip listserver and have received some great help. Still trying to figure out what is optimum for a UBB system as ever little bit helps smile

Things visably improved alot. I still need to figure out how to setup the logging feature so I can see what compression I am getting. Also did you get an EAPI warning when you restart httpd? I was told it is a bogus error but would like to know if others have gotten it as well.
_________________________
...Steven
Hostboard.com
Running UBB v6.1.0.4
Doing what NO other UBB in the world is doing.
The first & only production UBB powered by MySQL.

Top
#72876 - 06/13/01 04:52 PM Re: Speed up web pages to the end user
navaho Offline
Veteran

Registered: 10/05/00
Posts: 2518
Loc: navahoville! :D
My Load Module
LoadModule gzip_module libexec/mod_gzip.so (second from last)


My AddModule:
AddModule mod_gzip.c (it is also second from last)

The config I tacked onto the bottom of httpd.conf

################# Mod_GZIP ##################
# http://www.remotecommunications.com/apache/mod_gzip/
LogFormat "%h %l %u %t %r %>s %b mod_gzip: %{mod_gzip_compression_ratio}npct." common_with_mod_gzip_info1
LogFormat "%h %l %u %t %r %>s %b mod_gzip: %{mod_gzip_result}n In:%{mod_gzip_input_size}n Out:%{mod_gzip_output_size}n:%{mod_gzip_compression_ratio}npct." common_with_mod_gzip_info2
CustomLog /var/log/httpd/gzip.log common_with_mod_gzip_info2
mod_gzip_on yes
mod_gzip_dechunk yes
mod_gzip_minimum_file_size 200
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 100000
mod_gzip_keep_workfiles No
mod_gzip_temp_dir /tmp
mod_gzip_item_include file .html$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_include handler ^server-status$
mod_gzip_item_include handler ^server-info$
mod_gzip_item_exclude file .cgi$
mod_gzip_item_exclude file .pl$
mod_gzip_item_exclude file .php$
mod_gzip_item_exclude file .css$
mod_gzip_item_exclude file .js$
################# Mod_GZIP ##################

I removed the dechunk options and have php, .pl, and .cgi disabled for the reasons stated in my above post.

The handler for server info can come out, I have that disabled further up in the conf file.

My log is really too verbose as you can see and should be trimmed back more but I haven't taken the time to mess with it.

This is from my own server in the configuration I mentioned above as well, using a version of mod_gzip a bit older then the most current.

I really do need to work on the whole package some more but I want to rewrite my httpd.conf as a perl script when I do it and don't have the time for it now.
_________________________
Picture perfect penmanship here.

Top
#72877 - 06/14/01 03:14 AM Re: Speed up web pages to the end user
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
Quote:
quote:
That made me laugh SO much. laugh

Just a thought smile
_________________________
http://www.iamcal.com

Top
#72878 - 06/14/01 10:29 AM Re: Speed up web pages to the end user
1QuickSI Offline
Coder

Registered: 06/10/01
Posts: 705
Loc: CT
It is my understanding that the load order of modules of the httpd.conf file is extremely important. I wonder if this has any bearing on the way this particular module works or the issue you had with UBB CGI?
_________________________
...Steven
Hostboard.com
Running UBB v6.1.0.4
Doing what NO other UBB in the world is doing.
The first & only production UBB powered by MySQL.

Top
#72879 - 06/14/01 11:11 AM Re: Speed up web pages to the end user
Philipp Offline
Power User

Registered: 09/23/00
Posts: 99
Quote:
quote:

IIS 5.0 has already GZIP compression
http://www.microsoft.com/TechNet/iis/httpcomp.asp

Quote:
quote:

There is no need to compress PHP pages with mod_gzip. Just compile PHP 4.0.5 with the option --zlib and add output_handler = ob_gzhandler into your php.ini or <? ob_start("ob_gzhandler"); ?> on top of every PHP page.
_________________________
http://www.compatdb.org

Top
#72880 - 06/14/01 10:16 PM Re: Speed up web pages to the end user
navaho Offline
Veteran

Registered: 10/05/00
Posts: 2518
Loc: navahoville! :D
Cool! Thanks Philipp, next recompile I'll do that. Probably will not be long the way I go.

1QuickSi, yes it does make a difference as far as I know. That is where it ended up when I compiled the whole package, I did not add it there myself. I don't really know what order they should be loaded in to be honest.
_________________________
Picture perfect penmanship here.

Top
#72881 - 06/15/01 03:35 PM Re: Speed up web pages to the end user
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Quote:
quote:


thanks for the link phillipp.. it seems that it might not work well with our site, we'd really need to set cgi as one of the compressed file types for it to do us any good (since we ssi so many things) and that might just kill the processor with the main forums being all cgi...:)
_________________________
- Allen wavey
- What Drives You?

Top



Moderator:  Gizmo, Ian_W 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks