UBB.Dev
Posted By: Philipp [6.0x] Unix Server Load Limit 1.0 - 04/02/2001 10:40 PM
This hack allows UBB to determine the load on the server and to turn away further users if the server load is too high.

[Linked Image]

Tested under UBB 6.02 with mod_Perl

Download

Philipp

[ April 02, 2001: Message edited by: Philipp ]
Posted By: Greg Hard Re: [6.0x] Unix Server Load Limit 1.0 - 04/02/2001 10:57 PM
Nice job there Phillip!
Posted By: DPK.ducky.quack Re: [6.0x] Unix Server Load Limit 1.0 - 04/02/2001 11:31 PM
excellent man, love it smile
Posted By: FDSA Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 12:00 AM
thats great!

vbulletin has something like that. smile
Posted By: Tim 3dfiles Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 1:12 AM
The words:

document.writeln

Do not exist at all in my cp_common.pl

I have Whos Online hack on, I dont think that wiped it out though... Any ideas?
Posted By: Slurpee Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 1:19 AM
It has to be there, that's where your control panel links are.
Posted By: Tim 3dfiles Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 1:28 AM
Ok, I need a drink. I redownloaded it and its there... Hmmm, that was weird wink
Posted By: Tim 3dfiles Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 1:32 AM
Great:

You do not have permission to access this area.
» Use your browser's back button to return.


Probably because I am not using Mod Perl, wasnt sure if it work at all.
Posted By: Slurpee Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 1:46 AM
Tim - Double-check that you edited the cp.cgi file correctly.
Posted By: Philipp Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 1:46 AM
Code
quote:</font><HR>You do not have permission to access this area.
» Use your browser's back button to return.<HR></BLOCKQUOTE>

In control panel? Did you add the follow lines in cp.cgi:

Quote
code:


quote:

No, this hack is only mod_perl compatible but doesn't require it.
Posted By: Tim 3dfiles Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 2:54 AM
Yup, I got:


if (($ubb eq 'set_vars_display') && ($status eq 'Administrator')) {
&set_vars_display; exit;
} #end set_vars_display

if (($ubb eq 'vars_server_load') && ($status eq 'Administrator')) {
&view_vars("server_load"); exit;
} #end vars_server_load

if (($ubb eq 'set_vars_server_load') && ($status eq 'Administrator')) {
require "$vars_config{CGIPath}/cp_server_load.cgi";
&set_server_load; exit;
} #end set_server_load

Ill clear cache or something smile ?
Posted By: Tim 3dfiles Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 2:58 AM
Reuploaded everything and now when I click it, it just refreshes page and theres nothing there, but the words "Date & Time Settings". Everything else still seems to work.... Ill recheck my hacking, I usually never have a problem, so I am missing something small.

Thanks for any help you can give.

Update: Now redid whole hack from scratch, same problem.

[ April 02, 2001: Message edited by: Tim 3dfiles ]
Posted By: Slurpee Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 4:08 AM
Seems obvious, but you did upload the files contained in the zip and chmoded them correctly right?
Posted By: Tim 3dfiles Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 4:23 AM
You know, thats the first thing that comes to mind and I think I forgot to chmod them... Damn, all the hacks ive installed and I finally did that. Im sure I upload ascii, forgot permissions.


Ok, this sucks, thanks man!
Posted By: Tim 3dfiles Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 4:29 AM
Nope, tried 777 and 775, its not mentioned in the read me what to set them at.

Guess ill give up
Posted By: Slurpee Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 4:32 AM
Wait wait, try this.

CHMOD the ones in the CGI-BIN folder to 755.

CHMOD the ones in the TEMPLATES folder to 777 (even though it shouldn't matter).

CHMOD the file in the VARIABLES folder to 777.

See what happens.
Posted By: Tim 3dfiles Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 4:41 AM
No go, shouldnt matter, I run everything from one directory (cgi-bin) rather then a seperate cgi-bin directory. Anyhow, getting late so I quit for now smile

Thanks for the assist.
Posted By: Philipp Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 4:39 PM
Quote
quote:
Did you upload cp_vars_server_load.pl into your template folder?
Posted By: yapluka Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 9:08 PM
everything seems ok, but "your current load" doesn't display anything ???

i'm wrong anywhere ?

tipsy
Posted By: Philipp Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 10:12 PM
Quote
quote:
Is your board on a dedicated server?
Posted By: yapluka Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 11:35 PM
euhhhh... what do you mean with dedicated server ?

my board is on hypermart or virtualave

does this hack work on such servers ?

tipsy
Posted By: Greg Hard Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 11:45 PM
Should. Hypermart and Virtualave are on UNIX.
Posted By: The Prohacker Re: [6.0x] Unix Server Load Limit 1.0 - 04/03/2001 11:59 PM
But they prolly don't support mod_perl....
Posted By: Greg Hard Re: [6.0x] Unix Server Load Limit 1.0 - 04/04/2001 12:06 AM
This hack doesnt REQUIRE mod_perl.
Posted By: Tim 3dfiles Re: [6.0x] Unix Server Load Limit 1.0 - 04/04/2001 12:59 AM
Quote
quote:
Possibly missed it, the file names wrong in instructions or something, theres no cp_vars_server_load.pl mentioned in directions, unless ones ot assume, but ill check it out:


First you need to upload the follow files:
cgi-bin/cp_server_load.cgi -> To your UBB CGI directory
cgi-bin/ubb_server_load.cgi -> To your UBB CGI directory
variables/vars_server_load.cgi -> To your variables folder
variables/vars_wordlets_load.cgi -> To your variables folder
Templates/cp_server_load.cgi -> To your template folder
Posted By: Slurpee Re: [6.0x] Unix Server Load Limit 1.0 - 04/04/2001 1:11 AM
He mislabeled the template file .cgi instead of .pl in the directions, but it is .pl in the zip.
Posted By: Tim 3dfiles Re: [6.0x] Unix Server Load Limit 1.0 - 04/04/2001 2:50 AM
Yup and I somehow didnt read it properly and theres the problem.

Working like a charm now.

Thanks all.
Posted By: Philipp Re: [6.0x] Unix Server Load Limit 1.0 - 04/04/2001 1:06 PM
Quote
quote:
This hack is mainly for dedicated servers (=your own server) and not for virtual accounts.

Quote
quote:
Sorry Tim. Just updated the instructions.

BTW ask Ben to install mod_perl on the server because UBB6 runs much faster under mod_perl smile
Posted By: Tim 3dfiles Re: [6.0x] Unix Server Load Limit 1.0 - 04/05/2001 1:51 AM
Phillip,

Called Ben, turns out we ARE already using mod_perl.


No prob on the instructions, I do everything one step at a time and I knew something was wrong, I was confused and could not figure out why!!! But, you know me, love to install them beta hacks smile

[ April 04, 2001: Message edited by: Tim 3dfiles ]
Posted By: Stefan Re: [6.0x] Unix Server Load Limit 1.0 - 07/26/2002 11:03 PM
Anyone got a working d/l - link for this?

Thanks!
Posted By: Opie Re: [6.0x] Unix Server Load Limit 1.0 - 08/05/2002 9:17 AM
can someone fix the download link
Posted By: Opie Re: [6.0x] Unix Server Load Limit 1.0 - 08/06/2002 5:47 AM
purty please? haha
© UBB.Developers