From: <sha...@ta...> - 2002-08-09 10:58:36
|
i'm=20using=20Red=20Hat=20Linux=207.3.......=20running=20htsearch=20from=20command=20prompt,=20i=20use=20"htsearch=20-c=20htdigs.conf"=20and=20i=20run=20it=20from=20where=20htdigs.conf=20is=20located=20(which=20is=20/home/httpd/html/htdig/conf/) typing=20"which=20htsearch"=20gives=20me: /usr/bin/htsearch looking=20at=20the=20dir=20/usr/bin,=20i=20notice=20that=20all=20the=20programs=20(htdig,=20htdump,=20htload,=20etc)=20are=20in=20there...=20so=20i=20guess=20that=20they=20were=20put=20there=20as=20part=20of=20the=20htDig=20installation. I=20clearly=20have=20two=20installations=20of=20htDig=20which=20must=20be=20confused.=20=20My=20search.html=20is=20definatly=20using/calling=20the=20correct=20htsearch=20in=20the=20/cgi-bin=20folder.=20=20And=20/cgi-bin=20has=20correctly=20been=20defined=20as=20/home/httpd/html/cgi-bin=20within=20the=20Apache=20httpd.conf. Anyway,=20I've=20decided=20to=20wipe=20everything=20and=20re-install=20Linux=20(as=20i'm=20only=20using=20a=20test=20machine).=20=20Thanks=20for=20the=20help=20in=20pointing=20me=20in=20the=20right=20direction,=20though=20I=20can't=20seem=20to=20fix=20the=20problem. To=20ensure=20that=20I=20don't=20make=20the=20same=20mistakes=20second=20time=20round=20on=20a=20fresh=20install=20of=20HtDig,=20can=20someone=20tell=20me=20whether=20my=20assumptions/thinking=20below=20is=20correct=20(so=20that=20I=20can=20understand=20HtDig=20better): -=20in=20the=20first=20CONFIG=20file,=20what=20is=20the=20purpose=20of=20defining=20the=20variable=20exec_prefix=20when=20it=20is=20equal=20to=20prefix=20(the=20root=20dir=20tree)=20=3F -=20why=20does=20htdig=20install=20copies=20of=20the=20binaries=20in=20/usr/bin=20=3F -=20once=20I=20have=20made=20changes=20to=20the=20CONFIG=20file=20and=20then=20Compile=20and=20Install=20HtDig=20(using=20"make"=20and=20then=20"make=20install"....=20am=20I=20right=20in=20thinking=20that=20whenever=20I=20run=20htsearch/rundig/etc,=20it=20somehow=20looks=20back=20at=20the=20original=20installation=20directory=20for=20the=20CONFIG=20file=20to=20find=20the=20values=20for=20DATABASE_DIR,=20COMMON_DIR,=20etc.....=20OR....=20are=20those=20values=20hard=20coded=20in=20the=20binaries,=20and=20are=20the=20installation=20files=20and=20the=20CONFIG=20file=20are=20not=20used=20again=20(unless=20of=20course=20I=20want=20to=20install=20HtDig=20again)=20=3F -=20how=20would=20I=20install=20another=20version=20of=20htDig=3F=20=20is=20it=20as=20simple=20as=20changing=20the=20CONFIG=20file=20to=20install=20to=20a=20different=20directory=20(by=20changing=20the=20'root=20directory=20tree'.=20=20Can=20I=20do=20this=20and=20have=20two=20seperate=20htdig=20installations=20(with=20the=20aim=20of=20two=20seperate=20indexes/search=20forms/etc).=20=20Or=20do=20I=20have=20to=20create=20another=20set=20of=20installation=20files=20and=20create=20a=20second=20CONFIG=20file=20=3F -=20if=20i=20have=20created=20an=20index=20using=20rundig,=20and=20I=20want=20to=20re-index=20a=20specific=20directory/URL.=20=20Which=20files=20do=20I=20need=20to=20delete=20before=20I=20run=20rundig=20again=20(after=20I=20have=20chanced=20the=20htdig.conf=20file)=20=3F=20Is=20it=20just=20the=20db=20files=20in=20/htdig/db. Thanks=20for=20the=20help=20with=20these=20questions! Shams >=20According=20to=20s...@ta...: >=20I=20have=20managed=20to=20get=20htDig=20working=20from=20command=20line=20prompt,=20using >=20'htsearch=20-c=20<config_file>' >=20 >=20It=20seems=20that=20when=20I=20was=20using=20the=20command=20'htsearch'=20on=20its=20own,=20it=20was >=20running=20a=20different=20version=20of=20htDig=20with=20a=20different=20(older)=20database. >=20So=20before,=20whenever=20I=20was=20re-indexing=20different=20directories=20and=20then >=20using=20'htsearch'...=20old=20results=20kept=20coming=20up! >=20 >=20At=20the=20moment,=20I=20don't=20know=20where=20the=20other=20isntallation=20of >=20htsearch/conf/db=20files=20may=20be. > >Well,=20as=20I=20suggested=20yesterday,=20there=20are=20a=20couple=20possibilities. >Either=20you=20have=20two=20different=20htsearch=20binaries,=20or=20they're=20running=20two >different=20config=20files.=20=20From=20the=20CONFIG=20and=20htdigs.conf=20files=20that=20you >sent,=20it=20would=20seem=20that=20htsearch=20is=20in=20/home/httpd/html/cgi-bin/htsearch, >its=20default=20CONFIG_DIR=20is=20/home/httpd/html/htdig/conf,=20and=20the=20default >config=20file=20is=20/home/httpd/html/htdig/conf/htdigs.conf. > >So,=20here=20are=20some=20questions=20for=20you... > >1)=20When=20you=20run=20htsearch=20from=20the=20command=20line,=20where=20are=20you=20(i.e.=20what >does=20the=20pwd=20command=20report)=3F=20=20What=20does=20"which=20htsearch"=20report=3F > >2)=20Are=20there=20any=20other=20htsearch=20binaries=20on=20your=20system=3F=20=20What=20does "locate=20htsearch"=20and/or=20"find=20/=20-name=20htsearch=20-ls"=20report=3F > >3)=20What=20value=20of=20<config_file>=20are=20you=20using=20in=20your=20htsearch=20command=20above=3F >Is=20it=20different=20than=20the=20default=20/home/httpd/html/htdig/conf/htdigs.conf=3F > >4)=20What=20is=20the=20value=20of=20the=20"action"=20attribute=20in=20the=20<form=20...>=20tag=20in >your=20search.html=20file=3F=20=20If=20it's=20the=20usual=20setting=20of=20"/cgi-bin/htsearch", >what=20is=20the=20ScriptAlias=20definition=20for=20/cgi-bin=20in=20your=20Apache=20httpd.conf >or=20srm.conf=20file=3F=20=20Does=20this=20definition=20match=20with=20the=20location=20where >htsearch=20is=20installed=3F=20=20It=20obviously=20matches=20something,=20as=20htsearch=20is >running=20from=20the=20server,=20but=20is=20it=20the=20same=20binary=20or=20a=20different=20one=3F > >What=20I'm=20getting=20at=20with=20all=20these=20questions=20is=20you=20need=20to=20trace=20the >chain=20of=20logic,=20step=20by=20step,=20to=20determine=20what's=20going=20on,=20from=20what >URL=20the=20search=20form=20is=20giving=20the=20server,=20to=20how=20the=20server=20translates >that=20URL=20to=20a=20local=20path,=20to=20what=20binary=20the=20server=20runs=20as=20the=20htsearch >CGI=20program,=20to=20what=20config=20file=20that=20binary=20uses,=20to=20what=20database >that=20config=20file=20defines.=20=20Obviously,=20at=20some=20point=20in=20that=20chain, >it's=20going=20to=20a=20different=20place=20than=20when=20you=20run=20htsearch=20from=20the >command=20line.=20=20You=20need=20to=20figure=20out=20where=20and=20why.=20=20I=20can=20help,=20but >I=20need=20the=20information=20above=20to=20do=20it. > >Also,=20I=20don't=20think=20you=20ever=20mentioned=20which=20platform=20you're=20running >this=20on.=20=20The=20reason=20I=20ask=20is=20that=20the=20/home/httpd/html=20path=20for >the=20web=20files=20looks=20like=20Red=20Hat=20Linux=206.2=20or=20earlier=20(more=20recent >Linux=20distributions=20tend=20to=20use=20/var/www/html=20or=20something=20like=20that). >However,=20Red=20Hat=206=20put=20/cgi-bin=20in=20/home/httpd,=20not=20/home/httpd/html, >so=20if=20that's=20what=20you're=20running=20it=20may=20be=20that=20the=20server=20is=20grabbing >the=20htsearch=20binary=20from=20a=20different=20"cgi-bin"=20directory=20than=20the=20one >in=20which=20you=20installed=20it.=20=20If=20this=20is=20a=20Red=20Hat,=20Mandrake=20or=20SuSe >Linux=20distribution,=20try=20"rpm=20-q=20htdig"=20and=20see=20if=20it=20reports=20anything. >You=20may=20already=20have=20had=20an=20ht://Dig=20package=20installed=20before=20the=20one >you=20compiled=20from=20the=20tar=20archive. > >=20when=20indexing=20the=20directory=20<a=20Target=3D'_new'=20Href=3D'<a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/''>http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/'</a>><a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/'>http://10.5.1.199/test/</a></a> >=20 >=20which=20has=20ONLY=20the=20files=20tea.html=20and=20coffee.html, >=20 >=20<a=20Target=3D'_new'=20Href=3D'<a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/coffee.html''>http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/coffee.html'</a>><a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/coffee.html'>http://10.5.1.199/test/coffee.html</a></a> >=20<a=20Target=3D'_new'=20Href=3D'<a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/tea.html''>http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/tea.html'</a>><a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/tea.html'>http://10.5.1.199/test/tea.html</a></a> >=20 >=20why=20does=20it=20index=20the=20following=20URL's: >=20 >=20<a=20Target=3D'_new'=20Href=3D'<a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FN=3DD''>http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FN=3DD'</a>><a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FN=3DD'>http://10.5.1.199/test/=3FN=3DD</a></a> >=20<a=20Target=3D'_new'=20Href=3D'<a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FM=3DA''>http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FM=3DA'</a>><a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FM=3DA'>http://10.5.1.199/test/=3FM=3DA</a></a> >=20<a=20Target=3D'_new'=20Href=3D'<a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FD=3DA''>http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FD=3DA'</a>><a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FD=3DA'>http://10.5.1.199/test/=3FD=3DA</a></a> >=20<a=20Target=3D'_new'=20Href=3D'<a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FN=3DA''>http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FN=3DA'</a>><a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FN=3DA'>http://10.5.1.199/test/=3FN=3DA</a></a> >=20<a=20Target=3D'_new'=20Href=3D'<a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FD=3DD''>http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FD=3DD'</a>><a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FD=3DD'>http://10.5.1.199/test/=3FD=3DD</a></a> >=20<a=20Target=3D'_new'=20Href=3D'<a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FM=3DD''>http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FM=3DD'</a>><a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FM=3DD'>http://10.5.1.199/test/=3FM=3DD</a></a> >=20<a=20Target=3D'_new'=20Href=3D'<a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FS=3DD''>http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FS=3DD'</a>><a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://10.5.1.199/test/=3FS=3DD'>http://10.5.1.199/test/=3FS=3DD</a></a> > >Because=20Apache's=20FancyIndexing=20option=20generates=20links=20to=20those=20alternate >directory=20views=20when=20you=20ask=20it=20for=20the=20/test/=20directory=20listing.=20=20See <a=20Target=3D'_new'=20Href=3D'<a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://talk21.btopenworld.com/redirect.html=3Fhttp://www.htdig.org/FAQ.html#q4.23''>http://talk21.btopenworld.com/redirect.html=3Fhttp://www.htdig.org/FAQ.html#q4.23'</a>><a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://www.htdig.org/FAQ.html#q4.23'>http://www.htdig.org/FAQ.html#q4.23</a></a>=20(last=20paragraph=20of=204.23). > >--=20 >Gilles=20R.=20Detillieux=20=20=20=20=20=20=20=20=20=20=20=20=20=20E-mail:=20<gr...@sc...> >Spinal=20Cord=20Research=20Centre=20=20=20=20=20=20=20WWW:=20=20=20=20<a=20Target=3D'_new'=20Href=3D'<a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://talk21.btopenworld.com/redirect.html=3Fhttp://www.scrc.umanitoba.ca/''>http://talk21.btopenworld.com/redirect.html=3Fhttp://www.scrc.umanitoba.ca/'</a>><a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://www.scrc.umanitoba.ca/'>http://www.scrc.umanitoba.ca/</a></a> >Dept.=20Physiology,=20U.=20of=20Manitoba=20=20Winnipeg,=20MB=20=20R3E=203J7=20=20(Canada) > > >------------------------------------------------------- >This=20sf.net=20email=20is=20sponsored=20by:ThinkGeek >Welcome=20to=20geek=20heaven. <a=20Target=3D'_new'=20Href=3D'<a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://talk21.btopenworld.com/redirect.html=3Fhttp://thinkgeek.com/sf''>http://talk21.btopenworld.com/redirect.html=3Fhttp://thinkgeek.com/sf'</a>><a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://thinkgeek.com/sf'>http://thinkgeek.com/sf</a></a> >_______________________________________________ >htdig-general=20mailing=20list=20<htd...@li...> >To=20unsubscribe,=20send=20a=20message=20to=20<htd...@li...>=20with=20a=20subject=20of=20unsubscribe >FAQ:=20<a=20Target=3D'_new'=20Href=3D'<a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://talk21.btopenworld.com/redirect.html=3Fhttp://htdig.sourceforge.net/FAQ.html''>http://talk21.btopenworld.com/redirect.html=3Fhttp://htdig.sourceforge.net/FAQ.html'</a>><a=20Target=3D'_new'=20Href=3D'http://talk21.btopenworld.com/redirect.html=3Fhttp://htdig.sourceforge.net/FAQ.html'>http://htdig.sourceforge.net/FAQ.html</a></a> -------------------- talk21=20your=20FREE=20portable=20and=20private=20address=20on=20the=20net=20at=20http://www.talk21.com |