i'm using Red Hat Linux 7.3....... running htsearch from command prompt, i use 
"htsearch -c htdigs.conf" and i run it from where htdigs.conf is located (which is 
/home/httpd/html/htdig/conf/)

typing "which htsearch" gives me:

/usr/bin/htsearch

looking at the dir /usr/bin, i notice that all the programs (htdig, htdump, htload, 
etc) are in there... so i guess that they were put there as part of the htDig 
installation.

I clearly have two installations of htDig which must be confused.  My search.html is 
definatly using/calling the correct htsearch in the /cgi-bin folder.  And /cgi-bin has 
correctly been defined as /home/httpd/html/cgi-bin within the Apache httpd.conf.

Anyway, I've decided to wipe everything and re-install Linux (as i'm only using a test 
machine).  Thanks for the help in pointing me in the right direction, though I can't 
seem to fix the problem.

To ensure that I don't make the same mistakes second time round on a fresh install of 
HtDig, can someone tell me whether my assumptions/thinking below is correct (so that I 
can understand HtDig better):

- in the first CONFIG file, what is the purpose of defining the variable exec_prefix 
when it is equal to prefix (the root dir tree) ?

- why does htdig install copies of the binaries in /usr/bin ?

- once I have made changes to the CONFIG file and then Compile and Install HtDig 
(using "make" and then "make install".... am I right in thinking that whenever I run 
htsearch/rundig/etc, it somehow looks back at the original installation directory for 
the CONFIG file to find the values for DATABASE_DIR, COMMON_DIR, etc..... OR.... are 
those values hard coded in the binaries, and are the installation files and the CONFIG 
file are not used again (unless of course I want to install HtDig again) ?

- how would I install another version of htDig?  is it as simple as changing the 
CONFIG file to install to a different directory (by changing the 'root directory 
tree'.  Can I do this and have two seperate htdig installations (with the aim of two 
seperate indexes/search forms/etc).  Or do I have to create another set of 
installation files and create a second CONFIG file ?

- if i have created an index using rundig, and I want to re-index a specific 
directory/URL.  Which files do I need to delete before I run rundig again (after I 
have chanced the htdig.conf file) ? Is it just the db files in /htdig/db.

Thanks for the help with these questions!

Shams



> According to [EMAIL PROTECTED]:
> I have managed to get htDig working from command line prompt, using
> 'htsearch -c <config_file>'
> 
> It seems that when I was using the command 'htsearch' on its own, it was
> running a different version of htDig with a different (older) database.
> So before, whenever I was re-indexing different directories and then
> using 'htsearch'... old results kept coming up!
> 
> At the moment, I don't know where the other isntallation of
> htsearch/conf/db files may be.
>
>Well, as I suggested yesterday, there are a couple possibilities.
>Either you have two different htsearch binaries, or they're running two
>different config files.  From the CONFIG and htdigs.conf files that you
>sent, it would seem that htsearch is in /home/httpd/html/cgi-bin/htsearch,
>its default CONFIG_DIR is /home/httpd/html/htdig/conf, and the default
>config file is /home/httpd/html/htdig/conf/htdigs.conf.
>
>So, here are some questions for you...
>
>1) When you run htsearch from the command line, where are you (i.e. what
>does the pwd command report)?  What does "which htsearch" report?
>
>2) Are there any other htsearch binaries on your system?  What does
"locate htsearch" and/or "find / -name htsearch -ls" report?
>
>3) What value of <config_file> are you using in your htsearch command above?
>Is it different than the default /home/httpd/html/htdig/conf/htdigs.conf?
>
>4) What is the value of the "action" attribute in the <form ...> tag in
>your search.html file?  If it's the usual setting of "/cgi-bin/htsearch",
>what is the ScriptAlias definition for /cgi-bin in your Apache httpd.conf
>or srm.conf file?  Does this definition match with the location where
>htsearch is installed?  It obviously matches something, as htsearch is
>running from the server, but is it the same binary or a different one?
>
>What I'm getting at with all these questions is you need to trace the
>chain of logic, step by step, to determine what's going on, from what
>URL the search form is giving the server, to how the server translates
>that URL to a local path, to what binary the server runs as the htsearch
>CGI program, to what config file that binary uses, to what database
>that config file defines.  Obviously, at some point in that chain,
>it's going to a different place than when you run htsearch from the
>command line.  You need to figure out where and why.  I can help, but
>I need the information above to do it.
>
>Also, I don't think you ever mentioned which platform you're running
>this on.  The reason I ask is that the /home/httpd/html path for
>the web files looks like Red Hat Linux 6.2 or earlier (more recent
>Linux distributions tend to use /var/www/html or something like that).
>However, Red Hat 6 put /cgi-bin in /home/httpd, not /home/httpd/html,
>so if that's what you're running it may be that the server is grabbing
>the htsearch binary from a different "cgi-bin" directory than the one
>in which you installed it.  If this is a Red Hat, Mandrake or SuSe
>Linux distribution, try "rpm -q htdig" and see if it reports anything.
>You may already have had an ht://Dig package installed before the one
>you compiled from the tar archive.
>
> when indexing the directory <a Target='_new' Href='<a Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/''>http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/'</a>><a
> Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/'>http://10.5.1.199/test/</a></a>
> 
> which has ONLY the files tea.html and coffee.html,
> 
> <a Target='_new' Href='<a Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/coffee.html''>http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/coffee.html'</a>><a
> Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/coffee.html'>http://10.5.1.199/test/coffee.html</a></a>
> <a Target='_new' Href='<a Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/tea.html''>http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/tea.html'</a>><a
> Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/tea.html'>http://10.5.1.199/test/tea.html</a></a>
> 
> why does it index the following URL's:
> 
> <a Target='_new' Href='<a Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?N=D''>http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?N=D'</a>><a
> Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?N=D'>http://10.5.1.199/test/?N=D</a></a>
> <a Target='_new' Href='<a Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?M=A''>http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?M=A'</a>><a
> Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?M=A'>http://10.5.1.199/test/?M=A</a></a>
> <a Target='_new' Href='<a Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?D=A''>http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?D=A'</a>><a
> Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?D=A'>http://10.5.1.199/test/?D=A</a></a>
> <a Target='_new' Href='<a Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?N=A''>http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?N=A'</a>><a
> Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?N=A'>http://10.5.1.199/test/?N=A</a></a>
> <a Target='_new' Href='<a Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?D=D''>http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?D=D'</a>><a
> Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?D=D'>http://10.5.1.199/test/?D=D</a></a>
> <a Target='_new' Href='<a Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?M=D''>http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?M=D'</a>><a
> Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?M=D'>http://10.5.1.199/test/?M=D</a></a>
> <a Target='_new' Href='<a Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?S=D''>http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?S=D'</a>><a
> Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://10.5.1.199/test/?S=D'>http://10.5.1.199/test/?S=D</a></a>
>
>Because Apache's FancyIndexing option generates links to those alternate
>directory views when you ask it for the /test/ directory listing.  See
<a Target='_new' Href='<a Target='_new' 
Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.com/redirect.html?http://www.htdig.org/FAQ.html#q4.23''>http://talk21.btopenworld.com/redirect.html?http://www.htdig.org/FAQ.html#q4.23'</a>><a
 Target='_new' 
Href='http://talk21.btopenworld.com/redirect.html?http://www.htdig.org/FAQ.html#q4.23'>http://www.htdig.org/FAQ.html#q4.23</a></a>
 (last paragraph of 4.23).
>
>-- 
>Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
>Spinal Cord Research Centre       WWW:    <a Target='_new' Href='<a Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.com/redirect.html?http://www.scrc.umanitoba.ca/''>http://talk21.btopenworld.com/redirect.html?http://www.scrc.umanitoba.ca/'</a>><a
> Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://www.scrc.umanitoba.ca/'>http://www.scrc.umanitoba.ca/</a></a>
>Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
<a Target='_new' Href='<a Target='_new' 
Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.com/redirect.html?http://thinkgeek.com/sf''>http://talk21.btopenworld.com/redirect.html?http://thinkgeek.com/sf'</a>><a
 Target='_new' 
Href='http://talk21.btopenworld.com/redirect.html?http://thinkgeek.com/sf'>http://thinkgeek.com/sf</a></a>
>_______________________________________________
>htdig-general mailing list <[EMAIL PROTECTED]>
>To unsubscribe, send a message to <[EMAIL PROTECTED]> with 
>a subject of unsubscribe
>FAQ: <a Target='_new' Href='<a Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.com/redirect.html?http://htdig.sourceforge.net/FAQ.html''>http://talk21.btopenworld.com/redirect.html?http://htdig.sourceforge.net/FAQ.html'</a>><a
> Target='_new' 
>Href='http://talk21.btopenworld.com/redirect.html?http://htdig.sourceforge.net/FAQ.html'>http://htdig.sourceforge.net/FAQ.html</a></a>



--------------------
talk21 your FREE portable and private address on the net at http://www.talk21.com




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to