UBB.Dev
Posted By: Philipp [6.1x] UBB Accelerator 1.0.0 - 09/13/2001 10:06 PM
Title: UBB Accelerator 1.0.0

Requirements: UBB 6.1.0 Public Beta 1.4, PHP4 (Recommend PHP4.0.5 or higher with zLib support for GZIP output)

Description: UBB Accelerator increase the output performance of cached pages (and decrease the server load smile ) using PHP. Note: This hack is current not fully compatible with Who's Online.

Why PHP?
Because PHP runs unlike Perl on most Unix servers as part of the apache server process (Apache module) which is much faster that running under CGI. Also PHP 4.0.5 has build-in GZIP (require zLib library) output support smile

[Edit: The new version of UBB Accelerator is included in UBB 6.1.0 Beta Release 2.0]

[ 09-23-2001: Message edited by: Philipp ]
Posted By: Charles Capps Re: [6.1x] UBB Accelerator 1.0.0 - 09/13/2001 10:25 PM
VERY cute. I love it!
This is one of those "Duh! Why didn't someone think of that earlier!" hacks. Very, very slick, man.

[ 09-13-2001: Message edited by: Charles Capps ]
Posted By: LK Re: [6.1x] UBB Accelerator 1.0.0 - 09/13/2001 10:33 PM
Very nice hack, but also this one suffers from the JavaScript + Compression problem in some browsers (after refreshing)...
Posted By: Mr, Burn Re: [6.1x] UBB Accelerator 1.0.0 - 09/13/2001 10:48 PM
cool I'll definitely use it when theres a WOL workaround
Posted By: Charles Capps Re: [6.1x] UBB Accelerator 1.0.0 - 09/13/2001 10:51 PM
There won't be - this thing relies completely on the cache and can not interface with WOL.

Is there an easy solution to the JS problem?
Posted By: DPK.ducky.quack Re: [6.1x] UBB Accelerator 1.0.0 - 09/13/2001 10:54 PM
nice!! smile
Posted By: Mr, Burn Re: [6.1x] UBB Accelerator 1.0.0 - 09/13/2001 10:54 PM
bugger smile
Posted By: Charles Capps Re: [6.1x] UBB Accelerator 1.0.0 - 09/13/2001 11:46 PM
LK - what, exactly, are the problems with the JS? Describe in detail please.
Posted By: Travis Re: [6.1x] UBB Accelerator 1.0.0 - 09/14/2001 2:04 AM
Very nice!!!
Posted By: qasic Re: [6.1x] UBB Accelerator 1.0.0 - 09/14/2001 7:07 AM
Nice work!

WOL would need to be reworked into PHP in order for this to work ... unfortunately I'm not good @ PHP frown

qasic

[ 09-14-2001: Message edited by: qasic ]
Posted By: Lord Dexter Re: [6.1x] UBB Accelerator 1.0.0 - 09/14/2001 10:01 AM
Get someone who is Qasic. smile

Anyway, nice hack. laugh
Posted By: LK Re: [6.1x] UBB Accelerator 1.0.0 - 09/14/2001 11:06 AM
[Linked Image] and as I read somewhere, the IE automatically fixes this stuff when I choose to look at the Source Code....

[ 09-14-2001: Message edited by: LK ]
Posted By: Philipp Re: [6.1x] UBB Accelerator 1.0.0 - 09/14/2001 11:19 AM
What browser (version) did you used? I use IE 6 here and it seems to work fine.

[ 09-14-2001: Message edited by: Philipp ]
Posted By: LK Re: [6.1x] UBB Accelerator 1.0.0 - 09/14/2001 11:49 AM
Check https://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=5&t=000155 out... It's Allen's hack but the same bug.
Posted By: Philipp Re: [6.1x] UBB Accelerator 1.0.0 - 09/14/2001 12:03 PM
LK and everyone with JavaScript problems:
Please go to this page and post the result here. Thanks smile
Posted By: Ell Re: [6.1x] UBB Accelerator 1.0.0 - 09/14/2001 5:50 PM
qasic, I know PHP, I'll talk with you about sorting out WOL with it. smile
Posted By: AllenAyres Re: [6.1x] UBB Accelerator 1.0.0 - 09/14/2001 6:02 PM
I'm not having javascript problems, but here's the results of that link for me:

Browser ID: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) HTTP/1.0 no gzip

I have http 1.1 enabled, so I am not sure how this is correct. Also, the pages do not seem compressed to me, the file sizes aren't any different than normal. Did you turn gzip compression off just now?
Posted By: LK Re: [6.1x] UBB Accelerator 1.0.0 - 09/14/2001 6:22 PM
Browser ID: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) HTTP/1.1 gzip, deflate
Posted By: qasic Re: [6.1x] UBB Accelerator 1.0.0 - 09/14/2001 6:36 PM
AA,

Are you accessing the Dev from work or behind a proxy servers? Some proxy servers don't support HTTP 1.1 protocols so that's perhaps why it doesn't work.

q
Posted By: AllenAyres Re: [6.1x] UBB Accelerator 1.0.0 - 09/14/2001 7:23 PM
I am behind a firewall here at work, but in using the file compression we had running about a week, the pages were compressed, plus I didn't have any javascript errors either... same configuration here as now.
Posted By: Philipp Re: [6.1x] UBB Accelerator 1.0.0 - 09/14/2001 8:33 PM
Quote
quote:
Thats normal. Do you use a proxy server?

Quote
quote:
No, gzip compression is still running.


I tried the pages with gzip compression in the meantime on the follow browsers:
Internet Explorer 6.0 (Windows 2000)
Internet Explorer 5.5 (Windows ME)
Opera 5.12 (Windows ME)
Mozilla 0.9.3 (Linux)

and can't reproduce the JavaScript error frown
Posted By: RANCH4x4 Re: [6.1x] UBB Accelerator 1.0.0 - 09/14/2001 10:05 PM
If you guys could port WOL to PHP and would be compatible with this hack that would be beyond great! smile

Philip, nice hack man. smile
Posted By: Charles Capps Re: [6.1x] UBB Accelerator 1.0.0 - 09/14/2001 11:31 PM
LK, what build of IE is that? (Help -> About)
Posted By: Charles Capps Re: [6.1x] UBB Accelerator 1.0.0 - 09/15/2001 12:25 AM
Bug: The system works even if the board is off, and even if the currently logged in user is banned (the UBB will normally prevent them from doing anything)
Posted By: Brett Re: [6.1x] UBB Accelerator 1.0.0 - 09/15/2001 2:57 AM
n/m

got it. So much faster now!

[ 09-14-2001: Message edited by: raiyan ]
Posted By: AllenAyres Re: [6.1x] UBB Accelerator 1.0.0 - 09/15/2001 4:35 PM
My home pc has these stats:

Browser ID: Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.0) HTTP/1.1 gzip, deflate

I am not getting any javascript errors so far.

[edit: just updated to the latest IE ( Browser ID: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) HTTP/1.1 gzip, deflate ) and still no errors

[ 09-15-2001: Message edited by: AllenAyres ]
Posted By: psychopathic Re: [6.1x] UBB Accelerator 1.0.0 - 09/15/2001 11:09 PM
so basically what this does, is changes UBB to be somewhat PHP powered... all i have to say to that is IT'S ABOUT TIME!!!

nice job!!!
Posted By: Philipp Re: [6.1x] UBB Accelerator 1.0.0 - 09/15/2001 11:44 PM
I hope to finish version 1.1.0 during the next days smile

The follow is already included in 1.1.0:
- Board on/off switch
- Forum summary page support
- IP or reverse IP ban (using IPBan.cgi list)
Posted By: navaho Re: [6.1x] UBB Accelerator 1.0.0 - 09/16/2001 12:27 AM
I think itis just as important to not which browsers had NO difficulties.

These test posts were perfect.

Big pat on the back smile

You can also see it in action at efanguide. http://www.efgforum.com/cgi-bin/ultimatebb.cgi

This is a huge forum that was starting to outgrow the server. Reports are that this has given it some new life.

It does show the need to make addtions to the code for people that have "categories only" showing on the front page, and perhaps also change the link to the php extension in the nav bar, but for startes this is terrific. When it is complete it will be awesome!
Posted By: navaho Re: [6.1x] UBB Accelerator 1.0.0 - 09/16/2001 12:33 AM
Quote
quote:
Sortof. The UBB is still perl powered. This merely takes any cached pages and serves them via php and zlib. Anything not cached goes through perl still. All write functions for example. For most boards you'll find that almost all of your pages are served from cache so this will help a lot smile

Hope I'm explaining it right. I can understand things better then I can explain them sometimes.
Posted By: Philipp Re: [6.1x] UBB Accelerator 1.0.0 - 09/16/2001 2:00 AM
Quote
quote:
efanguide is running on a RaQ4 with PHP 4.0.3pl1

I highly recommend the update to PHP 4.0.6 because gzip output work only with 4.0.5 and higher.

[ 09-15-2001: Message edited by: Philipp ]
Posted By: Charles Re: [6.1x] UBB Accelerator 1.0.0 - 09/16/2001 1:00 PM
Quote
quote:
wouldn't real mod Perl do the same thing ?
Posted By: Weasel Re: [6.1x] UBB Accelerator 1.0.0 - 09/16/2001 3:32 PM
forget it laugh

[ 09-16-2001: Message edited by: Weasel ]
Posted By: Philipp Re: [6.1x] UBB Accelerator 1.0.0 - 09/16/2001 6:54 PM
Finished today the follow:
- Categories (Example: ultimatebb.php?category=1)
- Members Only Access
- Logged members can change now their "Default Topic View" in profile
Posted By: Greg Hard Re: [6.1x] UBB Accelerator 1.0.0 - 09/16/2001 7:36 PM
One of those deals:

Code
code:

That works on my test board and my main board to output the summary.
Posted By: LK Re: [6.1x] UBB Accelerator 1.0.0 - 09/16/2001 8:02 PM
Charles: 6.0.2600.0000, and it happens ONLY in forum page.

[edit: same results in my Windows98 laptop, and in h-realms.com]

[ 09-16-2001: Message edited by: LK ]
Posted By: navaho Re: [6.1x] UBB Accelerator 1.0.0 - 09/16/2001 10:34 PM
Quote
quote:
No Chuck. Real mod_perl caches the scripts so that perl doesn't have to be loaded every time and the scripts recompiled, They are compilerd just once, on server startup. But mod_perl does not compress the data to the browser. Mod_gzip will, and cgi_buffer will, but mod_perl doesn't.

Philipp's mod saves in both processing and bandwidth, a two fold savings.

What would be really awesome is using Philipp's mod with a mod_perl UBB that uses mod_gzip or cgi_buffer for the non PHP pages. Charles is working to bring the UBB to a state where it will run cleanly under Mod_perl but it probably won't get there soon.

Philipp RE: efanguide. Interestingly enough his phpinfo() does report that compression is presetn and working. Maybe the php that cobalt packages is numbered or built differently? You would know better then I. AFIK he is using whatever package files that Cobalt offers. Have they a newer one to install?

[ 09-16-2001: Message edited by: navaho ]
Posted By: Philipp Re: [6.1x] UBB Accelerator 1.0.0 - 09/16/2001 11:59 PM
Quote
quote:


I use PHP's ob_gzhandler function for the gzip output. ob_gzhandler is included in PHP 4.0.4+ but I recommend 4.0.5+ because zlib has a memory leak problem in earlier PHP versions.

Quote
quote:
Yes. There is a RaQ4 PHP 4.0.6 package:
http://pkg.nl.cobalt.com/packages/raq/4/#php
Posted By: Sn0pD0gG Re: [6.1x] UBB Accelerator 1.0.0 - 10/01/2001 10:35 AM
Question: Does this hack is no more needed in UBB 6.10 beta 1.4 ?
Posted By: hmiguelito Re: [6.1x] UBB Accelerator 1.0.0 - 10/01/2001 1:31 PM
The new version of UBB Accelerator will be included in UBB 6.1.0 Beta Release 2.0
Posted By: mark99 Re: [6.1x] UBB Accelerator 1.0.0 - 10/03/2001 12:19 PM
Is there anyway this can be supported in PHP3? I can't find many bandwidth allowing British servers that support PHP4.
Posted By: Ramirez Re: [6.1x] UBB Accelerator 1.0.0 - 10/03/2001 4:37 PM
Based on the posts on the first page I'm thinking that having this in beta 2 wouldn't do any good since the accelerator uses Zlib as well? If I'm wrong please correct me.
Posted By: qasic Re: [6.1x] UBB Accelerator 1.0.0 - 10/03/2001 5:17 PM
mark99, there doesn't seem to be so when I searched the PHP-related pages on vBulletin and on PHP.net.

Ramirez, if you have PHP and even if you don't have zlib, you're better off running the accelerator because 1) php grabs pages faster and 2) it's a lot less load on your server.

As always, WOL still DOES NOT work with UBB Accelerator so you have been warned.

qasic
Posted By: Ramirez Re: [6.1x] UBB Accelerator 1.0.0 - 10/03/2001 10:02 PM
Oops, I thought I was in the UBB Compression thread, sorry.

What I meant was does the Zlib feature of UBB Accelerator duplicate the effects of UBB compression? Is Accelerator kind of the same as UBB Compression combined with PHP doing some faster access of cached pages? Or does having both installed help?

I may not turn this on since we use Who's Online a lot. I saw Charles post earlier that WO would never be compatible with this. Is that true, is there no hope of having both?
Posted By: Charles Capps Re: [6.1x] UBB Accelerator 1.0.0 - 10/04/2001 1:36 AM
We're doing something like Who's Online (only ours will be 10x better wink ) in 6.2, and will make it compatible with the Accelerator.

This will be a challenge. wink
Posted By: mark99 Re: [6.1x] UBB Accelerator 1.0.0 - 10/04/2001 11:47 AM
Yeah but knowing InfoPop you won't include any SSI output like WOL =).
Posted By: svr Re: [6.1x] UBB Accelerator 1.0.0 - 10/25/2001 5:44 PM
Hi guys is this hack suitable for UBB 5.47e Unix? Thanks.
© UBB.Developers