Gilles Detillieux stated the following:
>
> According to SoloCDM:
>
> > SoloCDM stated the following:
>
> >> Jim Cole stated the following:
>
> >>> SoloCDM's bits of Thu, 7 Mar 2002 translated to:
>
> >>>> In Apache 1.3.22, I received the following results when I entered
> >>>> in a search criteria:
>
> >>>> Netscape is unable to find the file or directory named
> >>>> /cgi-bin/htsearch.
>
> That's the sort of error Netscape gives when it's trying to open a
> file locally, as opposed to going through a web server. How exactly
> are you calling htsearch? If it's from a search form, what does the
> action attribute of the <form> tag look like?
I have attached the file search.html for verification.
When I executed a search with search.html in lynx I received the
following error:
Alert!: POST not supported for this URL - ignoring POST data!
I'm making note of this for your benefit. It verifies your conclusion
and provides insight to what you are not able to see.
> >>>> From what I could tell, commonhttpd.conf has all the settings
> >>>> applied to allow htsearch to be found in the cgi-bin. Also, the
> >>>> permissions for the directories are chmod 755.
>
> >>> Have you checked httpd.conf to see precisely which directory it
> >>> is using for CGI's? Have you physically checked this directory to
> >>> see if the htsearch executable is present? If it is there, have
> >>> you verified that htsearch has read and execute permission? Have
> >>> you tested any other CGI's in this directory to ensure that the
> >>> webserver configuration itself is sane?
>
> >> Everything in the /cgi-bin/ directory works. Using
> >> "/var/www/cgi-bin/htsearch doc" works.
>
> > Important note: "/var/www/cgi-bin/htsearch doc" was executed at the
> > command line.
>
> I'm not sure what the "doc" command line argument is supposed to
> accomplish. htsearch expects a complete query string as an argument,
> so if you want it to search for the word "doc", you should use
> words=doc as the argument. Presumably you're getting the "No matches
> were found for ''" page as output from htsearch. If so, this does at
> least confirm that the htsearch binary is executable by your own user
> ID (but not necessarily by the web server's), and it doesn't confirm
> that Netscape is even attempting to execute htsearch on the web
> server.
I took your advice and executed "/var/www/cgi-bin/htsearch words=doc",
which came up with numerous "Permission denied" messages in a user
account. So, I changed the permissions in /var/lib/htdig/common and
/var/lib/htdig/db to give all the files 0644/-rw-r--r-- privileges.
Now the htsearch provides the proper output, which leaves only the
icons to be properly pointed to the directory for images.
Is my htdig.conf file configured correctly? If so, then why don't the
other directories get indexed into the database?
--
Note: When you reply to this message, please include the mailing
list/newsgroup address and my email address in To:.
*********************************************************************
Signed,
SoloCDM
Title: ht://Dig WWW Search
WWW Site Search
This search will allow you to search the contents of
all the publicly available WWW documents at this site.
Match:
All
Any
Boolean
Format:
Long
Short
Sort by:
Score
Time
Title
Reverse Score
Reverse Time
Reverse Title
Search:
|