|
Joined: Sep 2000
Posts: 91
Power User
|
Power User
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  ) 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 [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 ]
|
|
|
|
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
Admin / Code Breaker
|
Admin / Code Breaker
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
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.
|
|
|
|
Joined: Nov 2000
Posts: 915
Developer
|
Developer
Joined: Nov 2000
Posts: 915 |
nice!! 
|
|
|
|
Joined: Aug 2001
Posts: 18
Junior Member
|
Junior Member
Joined: Aug 2001
Posts: 18 |
bugger 
|
|
|
|
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
Joined: Aug 2000
Posts: 1,083 |
|
|
|
|
Joined: Jan 2001
Posts: 1,940
Developer
|
Developer
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 qasic [ 09-14-2001: Message edited by: qasic ]
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Get someone who is Qasic. Anyway, nice hack. 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
![[Linked Image]](http://lk.netfirms.com/details.jpg) 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
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
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
|
|
|
|
Joined: Sep 2000
Posts: 91
Power User
|
Power User
Joined: Sep 2000
Posts: 91 |
LK and everyone with JavaScript problems: Please go to this page and post the result here. Thanks 
|
|
|
|
Joined: Jul 2000
Posts: 1,349
Member
|
Member
Joined: Jul 2000
Posts: 1,349 |
qasic, I know PHP, I'll talk with you about sorting out WOL with it. 
|
|
|
|
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?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
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
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.
|
|
|
|
Joined: Sep 2000
Posts: 91
Power User
|
Power User
Joined: Sep 2000
Posts: 91 |
Thats normal. Do you use a proxy server? 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 
|
|
|
|
Joined: Sep 2001
Posts: 239
Member
|
Member
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! Philip, nice hack man. 
|
|
|
|
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
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 ]
|
|
|
|
Joined: Dec 2000
Posts: 237
Member
|
Member
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
Joined: Sep 2000
Posts: 91 |
I hope to finish version 1.1.0 during the next days 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
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 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
Joined: Oct 2000
Posts: 2,223 |
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 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
Joined: Sep 2000
Posts: 91 |
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
Joined: Oct 2000
Posts: 2,667 |
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
Joined: Dec 2000
Posts: 13 |
forget it  [ 09-16-2001: Message edited by: Weasel ]
|
|
|
|
Joined: Sep 2000
Posts: 91
Power User
|
Power User
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
Joined: Feb 2000
Posts: 4,625 |
One of those deals: That works on my test board and my main board to output the summary.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
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
Joined: Oct 2000
Posts: 2,223 |
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
Joined: Sep 2000
Posts: 91 |
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. 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
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
Joined: Jun 2001
Posts: 94 |
The new version of UBB Accelerator will be included in UBB 6.1.0 Beta Release 2.0
|
|
|
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.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|