Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
I've just moved to a new server and this morning found that while zLib is now supported under PHP, key modules were missing.

Anyhooo I had IO:String, zlib and MD5 installed under perl and still found that the PHP pages weren't compressed. I opted to go back to goo old CGI_Buffer compression and while now the missing modules had gone and pages were loading, they weren't actually compressed .. hrmm

In other words I've got the lines in ultimatebb.cgi and it's all loading without error, yet nothing gets compressed. If anybody can help then please please do, here's a beta forum and perl diver:

http://www.ispreview.co.uk/cgi-bin/ubb/ultimatebb.cgi

http://www.ispreview.co.uk/cgi-bin/perldiver.cgi

Sponsored Links
Joined: Feb 2001
Posts: 817
Moderator / Kingpin
Moderator / Kingpin
Joined: Feb 2001
Posts: 817
Moving to Installing and Upgrading to V6.

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Oh good, the place where few ever post, thanks =).

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
it seems that cgi_buffer doesn't compress with the newer .pm's. We don't yet know what the problem might be. We tried it ourselves last week. It didn't throw any errors, but didn't compress either.

If we see something, we'll post it.


- Allen wavey
- What Drives You?
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
It seems to be compressing... For me it never compressed the forum summary pages, but only the forum listing pages. And taking a look at the cgi forum listing pages on your forum they seem to be sub 5kb (which is an accurate size). Since PHP already should be using Gzip naturally, the compression wont do anything on the PHP pages to compress them.

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I have the cgi_buffer on my forum and it works perfectly. o_O

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
I took a look at one of the sub-CGI summary pages:

http://www.ispreview.co.uk/cgi-bin/ubb/ultimatebb.cgi?category=1

This comes out as 15,308K and is clearly not being compressed, so I'm not sure how you saw it being compressed.

I think I have the same issue as Allen because we just moved servers and I asked for those modules to be installed, which would thus be the very latest ones.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Hmm yes that is a bit slower then my compressed forum.

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
It's being gzipped just fine.

Clicky .


UBB.classic: Love it or hate it, it was mine.
Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Like I say the zLib compression via CGI_Buffer is parsing, however the page isn't physically being sent compressed. Note I'm talking about CGI_Buffer, not the method via PHP, haven't had time to fully check that, although I think it works.

Also on that page you highlight, it says the following at the bottom:

(traffic summary: 855 bytes HTTP headers + 15307 bytes content = 16162 bytes total)

I see no sign of compression, but I don't know how you're reading that output.

Either way my server physically registers a transmission of 15+K for the page, where as on the old server it'd be closer to 4 or 5K.

I'm currently trying to find the version number of the new modules vs the old ones, if they're different then I'll try to replace using the older ones.

Sponsored Links
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
the category display is actually an offshoot of the main forum summary, and on the forums ive tested it on has not been compressed either.

check this page:

http://www.ispreview.co.uk/cgi-bin/ubb/ultimatebb.cgi?ubb=forum&f=1&DaysPrune=1000 &submit=Go

which is 6k or so

or any topic through the cgi link, which is about 4-5k, whereas saving the source comes out to about 34k.

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
I'm not saving the source, I'm tracking the bandwidth reception and using the 'Right-Click' method.

If you right-click on the select page (using the above as an example) then I get 51K, now if I load the same forum under my other OLD server with the older perl modules then I get more like 6K or so.

Also the physical bandwidth sent by the server is far less on the old server than the new one.

Also your top sentance, the only page that CGI_Buffer doesn't compress is the very first primary summary page, it compresses all other ones just fine and this has been known about for ages. It's only the main index that it doesn't do and nobody ever found out why =).

I've found out that the perl modules on the new server are indeed the latest, so I'm now going to try the older ones and let you know. Thats if the admin still has access to them. For the record the new ones are:

MD5 : Ver 1.7
IO::String Ver 1.01
Compress:: Zlib Ver 1.16

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Ok good news, it was indeed one of the newer perl modules. Here's what we tried using instead, not that IO::String was left as v1.01:

md5 : 1.5.3 (now 1.7)
zlib : 1.12 (now 1.16)

The version in brackets is the newer one we had before, it's now on 1.5.3 for MD5 and so forth and working fine.

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Note that it's stopped working on my site again, since I can't check the version numbers and we're still switching servers then it could be for any number of reasons.

The only thing I note is that they put IO::String back and I asked for it to be remove so that I could call the older version locally. Perhaps the fault is in having a newer version of IO::String on the host side, I'll let you know.

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Hmm no the admin did nothing, it seems to work and then stop working at random reguardless of module version. Hmm there are a number of other less obvious modules called, but this could get ridiculous.

I give up, compression is fudged.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)