UBB.Dev
Posted By: NBAustin Testing UBB on my PC - 09/27/2001 1:34 AM
I want to test some code out on a dummy UBB on my PC.

I've installed Active Perl and set up the UBB in a directory called ubbtest.

I've edited the cplinks file to point to the cgi folder, but when i go to set the General variables, it asks if I want to download the file (cpanel.cgi) instead of just giving me the gen vars page so i can set up the ubb.

Can someone tell me what i'm doing wrong, and how to do this properly?

Thanks in advance!
Posted By: joking-down Re: Testing UBB on my PC - 09/27/2001 1:46 AM
do you use apache or IIS?
is the path in the first line correct (#!/usr/bin/perl is the default) ?


Sincerely

joking
Posted By: NBAustin Re: Testing UBB on my PC - 09/27/2001 2:17 AM
Neither.

I'm attempting to run it on Win 98 SE at home.

I want to test some things before upgrading.

I made the mistake of attempting to run it under a seperate directory under my domain on the server!
Posted By: qasic Re: Testing UBB on my PC - 09/27/2001 2:50 AM
NBAustin,

You must run a Webserver on your own computer in order to test UBB locally.

qasic
Posted By: Jamin Re: Testing UBB on my PC - 09/27/2001 3:36 AM
As Qasic said, you have to be running a web server in order to run UBB. ActivePerl is only half of the requisites.

IIS (my server of choice) isn't included on Win98, to my knowledge. So you'll have to get another one, preferably Apache and make sure that's set up correctly, and also make sure it's set up for Perl and stuff. Then install UBB into your webserver directory. It ought to work then, though I don't know much about setting up Apache.

---Skorpion
Posted By: NBAustin Re: Testing UBB on my PC - 09/27/2001 5:42 AM
Can I use that goofy-ass "personal web server" that comes with Windows or Front Page to make it work?
Posted By: Matt Jacob Re: Testing UBB on my PC - 09/27/2001 6:59 AM
You're right, Skorp; IIS is not included with the 95 kernel packages, nor will it run on anything less than an NT-based system. Instead of using PWS on W98, though, I would go ahead and use Apache, because it is much better.
Posted By: AllenAyres Re: Testing UBB on my PC - 09/27/2001 7:03 AM
You can use PWS for local testing. If you upgrade to v6+ you'll need to disable flock in your ubb to be able to test locally.

I got your files NB, just haven't had much time to go over them all smile
Posted By: NBAustin Re: Testing UBB on my PC - 09/27/2001 8:46 AM
Thanks Allen!

I was wondering if you got them.

On another note...the ubb_library2.pl you helped me with returns a syntax error at line 306. I'll be damned if i can find it1

Also, how do I set up PWS to test the ubb?

Thanks in advance!

Nick
Posted By: Burak Re: Testing UBB on my PC - 09/27/2001 8:59 AM
I use xitami for testing under win98 ... fast&without problems...
Posted By: DPK.ducky.quack Re: Testing UBB on my PC - 10/02/2001 12:16 AM
I run apache, wouldn't have it any other way. smile
Posted By: NBAustin Re: Testing UBB on my PC - 10/02/2001 12:21 AM
Quote
quote:
Is it self-explanatory, or is it involved? I'd hate to FUBAR my computer. wink
Posted By: The Donut Re: Testing UBB on my PC - 10/02/2001 2:17 AM
I use Xitami too.. Perfect if all you want to do is test stuff like that..

Although, since flock isn't implemented on Win9x, UBB6 won't work, so I just use it to test Perl, PHP, or any other kinds of scripts that I write.. Very useful..
Posted By: Rotaredom Re: Testing UBB on my PC - 10/03/2001 8:05 AM
flock will not work on in Win9X. You'll need to implement a workaround for locking files (i.e. semiphore files and checking comes to mind).

I got UBB 6 to work in Win98SE using Apache, ActiveState Perl. Be sure to download and install MicroSoft's DCOM patch to get above two to work. I am staying away from PWS as it took me 3 days to uninstall it and it's a pig.

My thoughts,
CW
Posted By: Charles Capps Re: Testing UBB on my PC - 10/03/2001 9:41 AM
6.1.0 will not run on Win9x at all - flock is used everywhere and is absolutely critical to operations.

This will include testing your hacks locally.

Just an FYI.

[ 10-03-2001: Message edited by: Charles Capps ]
Posted By: Burak Re: Testing UBB on my PC - 10/04/2001 10:21 AM
Quote
quote:
heh! just comment out the flock(..) lines tipsy if you didnt change it they must be in sub lock & sub unlock...

also; before uploading to the real server, change the lines back to normal...

xitami is fast & works without problems... perfect for testing under windows9x
Posted By: Charles Capps Re: Testing UBB on my PC - 10/04/2001 8:23 PM
jeologic, have you even *LOOKED* at the new code?

If not, then do so now. This very instant.

Then read this thread.

&lock() and &unlock() are only around now because the setup script hasn't been converted to the new file locking scheme.

You can't just comment those two out and expect flock to be gone.
© UBB.Developers