Gossamer Forum
Home : Products : DBMan : Customization :

Weird problem - URGENT!

Quote Reply
Weird problem - URGENT!
Hi,

I'm having a few problems with DBMan.

Having successfully installed DBMan and a couple of mods, I have decided to move all of my scripts from
LOCATION 1
/home/myaccount/cgi-bin/dbman
to
LOCATION 2
/home/myaccount/www/members/dbman
This is because I will be using password protection to access the scripts.

When they were in the LOCATION 1, all worked perfectly. However since moving all to LOCATION 2, keeping all permissions in tact and updating my default.cfg accordingly everything else works apart from the following URLs:
(Seems like authentication problems)
I can no longer get the correct output from such things as
http://www.mydomain/members/cgi-bin/dbman/db.cgi?signup_form=1
http://www.mydomain/members/cgi-bin/db/db.cgi?uid=default
Both URL's return a 'logged in screen' with default permissions and uid = BLANK, even when there are no user accounts set up!

default.cfg is set to:
$auth_allow_default = 0;
@auth_default_permissions = (1,0,0,0,0);
$auth_signup = 1;
This is weird because:
http://www.mydomain/members/cgi-bin/dbman/db.cgi?signup_form=1
logs in a user with uid=BLANK
@auth_signup_permissions = (1,1,0,1,0);
$auth_modify_own = 1;

I have analysed my default.cfg and it is correctly confgured for LOCATION 2.

If I move everything back even without updating my default.cfg, all goes back to normal?! (as far as the above URLs are concerned anyway!)

I'm at a bit of a loss with this one.
Can anyone suggest where I might have gone wrong.

-Gary

Quote Reply
Re: Weird problem - URGENT! In reply to
The problem is most likely related to server permissions to execute cgi and perl scripts outside of the cgi-bin directory. I would contact your ISP and ask them if you can execute/run cgi and perl scripts outside of your cgi-bin directory. MOST ISP do not allow scripts to be executed outside of the cgi-bin directory.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Weird problem - URGENT! In reply to
Hi Elliot,

It appears as though the scripts are working correctly and are executing, I made a typo above I have moved them to
/home/myaccount/www/members/cgi-bin/dbman
but I'm fairly confident that they are executing correctly.
For example:
http://mydomain/members/cgi-bin/dbman/db.cgi?db=default&uid=default&view_records=1
returns the expected result and returns all records as user=default and provides the various options available to this user.
But
http://mydomain/members/cgi-bin/dbman/db.cgi?signup_form=1
does not provide the add new user account form instead it just logs on as a user with uid=BLANK and not the proper permissions for a default user?!
This also happens when I try to login which is required under default.cfg using
http://mydomain/members/cgi-bin/dbman/db.cgi

Any ideas? It's as though my default authentication has got a bit messed up.

I'm fairly certain I can put my files outside of my cgi-bin, I'm just wondering whether I've messed up some permissions somewhere. I can still Add/View/Modify etc, so presumably db.cgi is still executing correctly.

-Gary
Quote Reply
Re: Weird problem - URGENT! In reply to
Please either provide a URL where we can see this or save your html.pl file as a text file like html.txt and upload it to a publicly accessible directory, and then post the URL where we can find the file.

Stating the problem without providing files or a URL where we can see the codes is problematic.

Smile

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us