PDA

View Full Version : UBB Install trouble


Maynard
01-31-2001, 03:56 PM
I'm really at my wit's end here. Last week I installed the free version on another system and it was painless. Today is a disaster.

Are there any unique or undocumented tricks particularly required for RedHat or FQ?

Thanks,

Deb
01-31-2001, 04:11 PM
A shot in the dark without knowing exactly what's going wrong but....

If the UBB install instructions are asking you to chmod (change permissions) to any files or directories within your cgi-bin to mode 777 change them to mode 755 instead...this will make a huge difference ;)

Deb
[nbsp]- Just Better

Maynard
01-31-2001, 04:42 PM
Hi Deb,

I've tried both 777 and 755, including and excluding the variable_files; all combinations ;-}

I've tried putting the cgi files into /www/cgi-bin, /www/cgi-bin/ubb, /www/scripts, /www/scripts/ubb, and /www/../cgi-bin all to no avail.

Of course, I can't access the last of these with the browser.

I finally got the debug scripts hello.cgi and ubb_test.cgi to run without generating server errors.

/www/scripts/ubb/cpanel.cgi?action=variables runs from the shell, but not from the browser.

I'm stuck at the Control Panel General Settings, needing to set some absolute paths. The only thing UBB knows now is the base href of [ip]/scripts/ubb/

Bob
01-31-2001, 05:05 PM
Hi Maynard,

A couple of items I note from your post.

The first is, you constantly refer to the cgi-bin as lying below the /www/ folder when in fact your cgi-bin resides at the same level as the /www/ folder. i.e.[nbsp][nbsp]/cgi-bin/ubb/hello.cgi[nbsp][nbsp]would be a correct path.

Also making sure that you have uploaded all in ASCII and if not you will need to strip all of the carriage returns using your CNC.[nbsp][nbsp]Also a great resource for these types of problems are your Script Trouble Shooter within the CNC.

One last note, it would appear that you may have multiple installations in different folders, based on the information you have supplied.[nbsp][nbsp]If this is the case removing everything and starting from scratch has always been the best approach for me.

I hope some of this helps and Good Luck :)

Have a Good One,
Bob

- UBB, VB, IK, WWW,[nbsp][nbsp]they all come with their own peculiarities :P-

Maynard
01-31-2001, 05:24 PM
Hi Bob,

Regarding the location of cgi scripts. First, can't they run from wherever I put them?

Second, when the browser is directed to [ip|domain]/ , it's absolute path is /big/dom/xdomain/www/

The browser can only go further down the path, not back up or parallel from the base, so it cannot get to /big/dom/xdomain/cgi-bin

Or is there some funky redirection in place which is not apparent to me?

Yes, all .cgi files are ASCII as verified by perl -cw

Shalazar
01-31-2001, 05:55 PM
The location of your cgi-bin is:

/big/dom/xyourdomain/cgi-bin/

The path to your www domain is:

/big/dom/xyourdomain/www/

See, they're both on the same level.[nbsp][nbsp]

The cgi-bin has been placed outside the www tree so as to not be web accessible, another security feature implemented by FutureQuest.

You will want to maintain all your scripts in the cgi-bin provided for you.[nbsp][nbsp]Then your scripts can be accessed by:

www.yourdomain.com/cgi-bin/whatever (http://www.yourdomain.com/cgi-bin/whatever)

As the cgi-bin is aliased in a way that it is referenced as if it indeed lied in the www directory.

Bob
01-31-2001, 05:59 PM
Hi again,

Yep there is a little "Funky" stuff going on[nbsp][nbsp];)[nbsp][nbsp]

Through some of TeRRa's "magic" the cgi-bin is magical in nature and while you are correct that a browser can't "Go UP" in the case of cgi-bin it can indeed execute scripts from the cgi-bin lying on the same plain as the /www/ folder.

If you would visit your CNC, under Server Info you will see the path.

[nbsp]You may run scripts from outside of your root cgi -bin, however, it is much[nbsp][nbsp]harder to manage and control the security that the cgi -bin provides. And FutureQuest does not recommend this.

[nbsp]We cannot provide any support for this, nor can we be responsible for any side effects. The /www/ directory is much more open to the public.

I hope this helps :)

Have a Good One,
Bob

- But How???[nbsp][nbsp]Heck if I know, TeRRa's the God, you'll have to ask him :P-
[This message has been edited by Bob (edited 01-31-01@6:00 pm)]

Maynard
01-31-2001, 08:06 PM
OK Guys and Gals,

After much finger exercise today, fiddling with permissions and directories until arriving at a set mutually satisfactory to UBB and FQ, and of all things stripping some stray CRs, it seems to be configuring properly.

For the next person searching these fora on the same trouble:
all cgi in the delivered cgi-bin directory, 755 permissions on all, except 777 on the 4 variable_files and the Members/ dir (for install); all non_cgi in /ubb (777 for install), with 644 on all.

I'll probably try to reduce permissions and move all UBB stuff to /cgi-bin/ubb later.

Are there any other &quot;magic&quot; hidden tricks documented somewhere which it would be important if not useful for me to understand? <G>

Thanks again, and Best Wishes.