Hi Mike,


Let's first solve your compilation issue...


On Wed, Jan 28, 2004 at 04:32:20PM -0500, Mike Flynn wrote:
> Hey all,
> 
> After my web host has been unable to install htdig for us, I am trying to 
> do it myself.  Unfortunately, I have only a basic working knowledge of 
> Unix/Linux.
> 
> I am following the instructions on the "Installation" section of the htdig 
> website, and I am up to the point where it says: "After this, you may wish 
> to edit the file CONFIG".
> 
> However, I don't see any file named CONFIG.  These are the files I see:
> COPYING                 config.guess            htsearch
> ChangeLog               config.log              httools
> ChangeLog.0             config.status           htword
> Makedefs.win32          config.sub              include
> Makefile                configure               install-sh
...                      ^^^^^^^^^^^

Thats the script of your choice!

Just try to run it without parameters and you will get a help output, where you
can see what parameters for compile/runtime you can set, e.g. my setting:

LDFLAGS="-L/opt/openssl/lib -lssl -lcrypto" CPPFLAGS="-Wno-deprecated" CXXFLAGS=
"-Wno-deprecated" ./configure --prefix=/opt/htdig-3.1.6-ssl --with-config-dir=/o
pt/htdig-3.1.6-ssl/conf --with-database-dir=/opt/htdig-3.1.6-ssl/db/default --wi
th-cgi-bin-dir=/opt/htdig-3.1.6-ssl/bin --with-image-dir=/opt/htdig-3.1.6-ssl/ht
docs/images --with-search-dir=/opt/htdig-3.1.6-ssl/htdocs --with-image-url-prefi
x=/images --with-common-dir=/opt/htdig-3.1.6-ssl/common/default --with-rx

(This configure command is due to my needs and therefore has SSL compiled in.)

Looks weird, I know. :))

These are only the compile settings. There's no setting you can't tweak after-
wards with the htdig config file.

> Basically, our setup is on a dedicated server with multiple domains.  Under 
> the root folder of our server there is a html directory, and then under 
> that are all the domains: www.a.com, www.b.com, etc.  I'd like to set up 
> htdig below the websites off of the root, which is where I extracted the 
> tar file.  Then I'd like to have each domain have its own configuration and 
> htsearch executable.  Does anyone have any suggestions as to how I should 
> proceed?

There's no need to have a separate executable for each webserver. Just create
a cgi-bin which calls htsearch in the proper location (in my example above it
would look like this) and hand over the config file name to this search cgi:
(example is a shell script for better understanding)

#!/usr/local/bin/bash

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

BASE="/opt/htdig"
BINDIR="${BASE}/bin"
CONFDIR="${BASE}/conf"

export BASE BINDIR CONFDIR

${BINDIR}/htsearch -c ${CONFDIR}/<your.website.foo.com>.conf

Finally I might ask a question: What kind of Unix are you using?

> 
> Thanks very much.
> -Mike
> 

Yours,

Martin

-- 

--------------------------------------------------------
 arago AG, Institut fuer komplexes Datenmanagement
 Am Niddatal 3, 60488 Frankfurt/Main, [EMAIL PROTECTED]
 Tel. 069/405680, Fax 069/40568111, http://www.arago.de
--------------------------------------------------------

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to