Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
#147263 09/13/2001 3:06 PM
Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
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 ]

Sponsored Links
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
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 ]


UBB.classic: Love it or hate it, it was mine.
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Very nice hack, but also this one suffers from the JavaScript + Compression problem in some browsers (after refreshing)...

Joined: Aug 2001
Posts: 18
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 18
cool I'll definitely use it when theres a WOL workaround

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
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?


UBB.classic: Love it or hate it, it was mine.
Sponsored Links
Joined: Nov 2000
Posts: 915
Developer
Developer
Offline
Joined: Nov 2000
Posts: 915
nice!! smile

Joined: Aug 2001
Posts: 18
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 18
bugger smile

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
LK - what, exactly, are the problems with the JS? Describe in detail please.


UBB.classic: Love it or hate it, it was mine.
Joined: Aug 2000
Posts: 1,083
Kahuna
Kahuna
Offline
Joined: Aug 2000
Posts: 1,083
Very nice!!!


.::First place winner in the June 2001 Member Spotlight ::.
.::Zelda Xtreme::.
Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
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 ]

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Get someone who is Qasic. smile

Anyway, nice hack. laugh

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
[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 ]

Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
What browser (version) did you used? I use IE 6 here and it seems to work fine.

[ 09-14-2001: Message edited by: Philipp ]

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
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.

Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
LK and everyone with JavaScript problems:
Please go to this page and post the result here. Thanks smile

Joined: Jul 2000
Posts: 1,349
Ell Offline
Member
Member
Offline
Joined: Jul 2000
Posts: 1,349
qasic, I know PHP, I'll talk with you about sorting out WOL with it. smile

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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?


- Allen wavey
- What Drives You?
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Browser ID: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) HTTP/1.1 gzip, deflate

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
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

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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.


- Allen wavey
- What Drives You?
Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
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

Joined: Sep 2001
Posts: 239
Member
Member
Offline
Joined: Sep 2001
Posts: 239
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

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
LK, what build of IE is that? (Help -> About)


UBB.classic: Love it or hate it, it was mine.
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
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)


UBB.classic: Love it or hate it, it was mine.
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
n/m

got it. So much faster now!

[ 09-14-2001: Message edited by: raiyan ]

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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 ]


- Allen wavey
- What Drives You?
Joined: Dec 2000
Posts: 237
Member
Member
Offline
Joined: Dec 2000
Posts: 237
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!!!

Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
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)

Joined: Oct 2000
Posts: 2,223
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,223
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!


Picture perfect penmanship here.
Joined: Oct 2000
Posts: 2,223
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,223
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.


Picture perfect penmanship here.
Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
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 ]

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
Quote
quote:
wouldn't real mod Perl do the same thing ?


Do you believe in love at first sight,
or should I walk by again?
Joined: Dec 2000
Posts: 13
Junior Member
Junior Member
Offline
Joined: Dec 2000
Posts: 13
forget it laugh

[ 09-16-2001: Message edited by: Weasel ]

Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
Finished today the follow:
- Categories (Example: ultimatebb.php?category=1)
- Members Only Access
- Logged members can change now their "Default Topic View" in profile

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
One of those deals:

Code
code:

That works on my test board and my main board to output the summary.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
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 ]

Joined: Oct 2000
Posts: 2,223
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,223
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 ]


Picture perfect penmanship here.
Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
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

Joined: Aug 2001
Posts: 68
Member
Member
Offline
Joined: Aug 2001
Posts: 68
Question: Does this hack is no more needed in UBB 6.10 beta 1.4 ?

Joined: Jun 2001
Posts: 94
Member
Member
Offline
Joined: Jun 2001
Posts: 94
The new version of UBB Accelerator will be included in UBB 6.1.0 Beta Release 2.0

Page 1 of 2 1 2

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
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
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
Morgan 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)