Can't Invoke Search?

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Can't Invoke Search?

Post by Thunderstone »




I have two db directories, each "filled" by a separate
"walk": db and db-njcate.

I modified the search script (search-njcate) by changing
the value of DB as follows:

<DB = /usr/local/etc/httpd/htdocs/webinator/db-njcate>


and the defaultdb as follows:

<!-------------------------------------------------------------------------
Set the database name
-------------------------------------------------------------------------->
<A NAME=setdb>
<$defaultdb = /usr/local/etc/httpd/htdocs/webinator/>
<IF $db eq "">
<$db = "db-njcate"> <!-- default database -->
</IF>
<sum "%s" $defaultdb $db>
<!-- Security check: disallow /.. in paths; keep users in webinator/: -->
<sandr "[/\\]=\.{2}" "" $ret>
<$dbdir = $ret>
<DB = $dbdir>
<IF $db eq "db">
<$db = >
</IF>
</A>

Nothing else is changed.

The link to the search is:

http://www.mccc.edu/cgi-bin/texis/webin ... rch-njcate

When I click on that, I get the following:

Texis Web Script (Vortex) Copyright © 1996-1998 Thunderstone - EPI, Inc.
Free Webinator Version 2.5.908330451 of Oct 13, 1998

Error

000 /webinator/search-njcate:129: Could not open SYSCOLUMNS in the function ddopen

000 /webinator/search-njcate:129: Could not connect to /usr/local/etc/httpd/htdocs/webinator/db-njcate in the
function openntexis

What have I done wrong? (This script used to work.)

Thanks,
Pete




User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Can't Invoke Search?

Post by Thunderstone »



You don't have to change the script just to use a different database.
You can just append
?db=db-njcate
to the normal search url
http://www.mccc.edu/cgi-bin/texis/webin ... =db-njcate

But the script is not the problem. You have a permissions problem. You are
not running gw as the same userid as texis is run as by the web server.
You should make both gw and texis setuid to the same userid that you want
to manage the databases. The install script attempts to do this and warns
you if it can't.

Use the "chown" system command to fix the permissions on the database
you already have.




Post Reply