[htdig] No matches... SOLUTION: db.words.db_weakcmpr has to be WRITEABLE

Subject: [htdig] No matches... SOLUTION: db.words.db_weakcmpr has to be WRITEABLE
From: Jean Tiberghien (jean.tiberghien@cie.fr)
Date: Fri Nov 03 2000 - 09:28:13 PST

Hello Geoff,

Thanks for your advice :
I checked the <http://www.htdig.org/FAQ.html#q5.17> FAQ.

5.17. When using Netscape, htsearch always returns the "No match" page.

(NOT ONLY FOR Netscape 3.2.x, but for ANY BROWSER --> .... )
Another possibility, if you're running 3.2.0b1 or 3.2.0b2, is

(YES ----> .......... )
that you need to make the db.words.db_weakcmpr file writeable
by the user ID under which the web server runs.
This is a bug, and will be fixed in the next beta.


Finally, the problem was not the hidden fields in search.html
but in the ...

                    db.words.db_weakcmpr ... Which has to be WRITEABLE
                    by the user ID under which the web server runs (user

                    BEFORE : (doesn' work ... search.html returns : NO
                    -rw-r--r-- root root db.words.db_weakcmpr

                    AFTER : (WORKS! ... )
                    -rw-rw-rw- root root db.words.db_weakcmpr

In any case db.words.db_weakcmpr has to be Writeable by Apache user Id

Maybe that's not very clean to "chmod" this way...

I noticed that I had compiled and "make check" HTDIG with a plain user (not
user root
otherwise the make check doesn' work). Then I "su -root" and "make install" ;

which means that htdig is installed with owner "root".

Maybe I should have had "su - nobody"and then "make install" ?
This way, the file would have been automatically "writeable"....
But I didn't try yet and I'm not sure, 'nobody' would have been able to
'install' correctly
the whole stuff.

May be you would propose a 'clean' solution ?

                Thanks again to Geoff Hutchison,
                as well as to Michael Rhodes




Geoff Hutchison wrote:

> At 11:31 AM +0100 11/3/00, Jean Tiberghien wrote:
> >But Everytime, when I try <http://>http://>/htdig/search.html
> >it always returns "No matches were found", whatever the words submitted.
> >It looks like the "htsearch" CGI, in /usr/local/apache/cgi-bin/htsearch
> >is not looking in the right place ...May be I missed one point.
> No, if it can't find the databases it will tell you that.
> Try this: <
> --
> -Geoff Hutchison
> Williams Students Online
> http://wso.williams.edu/

Jean Tiberghien  jean.tiberghien@cie.fr
Centre Internet Europeen
738, rue Yves Kermen
92658 Boulogne-Billancourt Cedex
Tel: 01 46 21 22 22
Fax: 01 46 21 55 35 http://www.cie.fr

This archive was generated by hypermail 2b28 : Fri Nov 03 2000 - 09:32:55 PST