Gossamer Forum
Home : Products : DBMan : Installation :

Script Reads from Wrong Location During POST

Quote Reply
Script Reads from Wrong Location During POST
Hi - I just got the demo working with some small modifications.
My script in question was working just fine under IIS. I do my dev
on Windows and then upload to a UNIX server.

After making the correct server modifications, whenever I try to POST
it seems like the script that wants to execute is in "../" rather than in the
current working directory "./" after the POST.

Here's a copy of the current dev (permissions view folder available too)

http://www.bilinguistics.com/test2/db.cgi

When I try to login, the server says the script cannot be found
at the root web directory.

Have I misconfigured something on the server?

Thanks.
Quote Reply
Re: [madmoguler] Script Reads from Wrong Location During POST In reply to
This is an Andy question!

But if it can't find the script, then the paths must be wrong.

when I tried to sign on as a guest, it said it could not find the script at /home/sites/site126/web/db.cgi

but you gave us http://www.bilinguistics.com/test2/db.cgi.

See the difference? /web/db.cgi vs /test2/db.cgi...

DBMAN has only one path to set in default.cg. Then everything uses that one path.




Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Quote Reply
Re: [esm] Script Reads from Wrong Location During POST In reply to
Here's a bit more info:

The default.cfg defines:
$db_db_path = "http://bilinguistics.com/test2";

And the db.cgi defines:
$db_script_path = ".";

The web/ directory is an internal error given from the server - but I havent' used that path in any of my scripts.
You can browse the directory to see the default.cfg file it that helps.

This is Cobalt Linux 6.0 running Apache (I believe)
Quote Reply
Re: [madmoguler] Script Reads from Wrong Location During POST In reply to
oh, and I just tried to set the db path to the internal name and i get the same error

$db_db_path = "/home/sites/site126/web/test2"
Quote Reply
Re: [madmoguler] Script Reads from Wrong Location During POST In reply to
did you modify default.cfg (beyond changing the path to dbman )????

there is no $db_db_path in the default.cfg. The only variable that needs to be changed is the $db_dir_url.

$db_db_path vs $db_dir_url ????


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Quote Reply
Re: [esm] Script Reads from Wrong Location During POST In reply to
Whoa, I don't know what I was thinking (temporary insanity).

When I switched over to a new server I screwed up the path name variable!

Thanks Gene!