Incorrect "Action"

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

Incorrect "Action"

Post by Thunderstone »



I recently installed Webinator on an Irix 5.3 box. Everything went smootly,
I had no trouble indexing my site or installing the software, but when I go
to run it I have problems. When I run it from a premade html page with
"METHOD=POST ACTION=http://art4all.com/cgi-bin/webinator" I have no problem
and it works fine, but the search form it returns is incorrect. The
Thunderstone graphic does not appear and the search does not work. A look
at the source reveals the reason. Instead of "webinator" in all the ACTIONs
or in front of query strings it reads "cgi". Thus, it tries to call
http://art4all.com/cgi-bin/cgi and of course if cannot find it, so I get an
error. If I run the script from a command prompt the problem disappears.
Where all the "cgi"s were before now reads "webinator" like it should.

I am almost positive this is some sort of permissions problem, but I cannot
figure out what it is. The system I am running off is a virtual domain and
I have cgi-bin access via a cgi wrapper. Supposedly this makes all cgi
scripts run from my domain as my user id. When I installed webinator it
asked what the web server's user id was... thinking that this was going to
be my user id because the scripts under my domain run as my user id I
entered my user id. This gave the file "webinator" suid to my name, but the
cgi wrapper would not execute a suid file from the web. I used chmod and
changed it to 777 but I still have the error of it returning the "cgi"
instead of "webinator". So, I reinstalled this time leaving the uid of the
web server blank. I encounter the same problem with this method, too.

Is there something obvious I am missing here? I have read through all of
the online documentation as well as looked and searched through the
archived listserv messages. The search works beautifully the first time, I
just cannot get it to return the proper search form. Thanks in advance for
any help you can lend.

James D. Alessio
jamie@art4all.com
www.art4all.com
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Incorrect "Action"

Post by Thunderstone »



..

Apparently your cgi wrapper is not setting argv[0] (the name of
the program) correctly when it runs the real program. It's just leaving it
with its own name (cgi). Webinator must be executed with argv[0] set correctly
to itself (webinator).
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Incorrect "Action"

Post by Thunderstone »



When I call webinator, it gives me a
strange error message

Could not open index C:\webinator\bin\tc\a12997

The name of my database is tc. And it looks like
everything is fine except for the error message.
How can I make the error message go away. I tried deleting
all files starting with a12997 in the production
drive, but that didn't change a thing.

I did a walk of 10,000 records with some NT IIS3.0
crashes. I ran gw on a different machine and then copied
the index over to the production machine.


--------------------------------------------------------------
Larry Rudner rudner@cua.edu
ERIC Clearinghouse on 800 464-3742 (800 Go4-ERIC)
Assessment and Evaluation 202 319-5120
Catholic University of America FAX: 202 319-6692
Washington, DC 20064 http://ericae2.educ.cua.edu
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Incorrect "Action"

Post by Thunderstone »



Larry Rudner said:

It looks as if the index files were not copied correctly. Removing
the files will certainly make it unable to open the index. I would
suggest running a gw -unindex followed by a gw -index on the
production machine to regenerate the indices.
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Incorrect "Action"

Post by Thunderstone »




That fixed it. Thanks.

--------------------------------------------------------------
Larry Rudner rudner@cua.edu
ERIC Clearinghouse on 800 464-3742 (800 Go4-ERIC)
Assessment and Evaluation 202 319-5120
Catholic University of America FAX: 202 319-6692
Washington, DC 20064 http://ericae2.educ.cua.edu