According to Emma Jane Hogbin:
> On Mon, Feb 17, 2003 at 10:32:05PM +0000, Robert Isaac wrote:
> > I have htdig 3.1.6 installed and running OK in the web site root but want 
> > to install it lower down the server tree. All went well but when I entered 
> > a name to search for in the search.html form I got the error 'cannot read 
> > configuration file'.
> 
> What are the permissions on your config file? I usually do:
>       chmod 775
> This is "everyone can read and execute" but only the owner (and the group)
> can write to the file/edit it.
> 
> If you've actually moved the config file from /etc/htdig to a different
> directory you may need to recompile the search engine and tell it where to
> look for configuration files (i.e. re-set the default config dir).

The /etc/htdig directory is the default CONFIG_DIR setting for many RPM
distributions of ht://Dig, but isn't usually the compiled-in CONFIG_DIR
setting when you install from source code.  (The default that ./configure
uses is something like /opt/www/htdig/conf.)  In any case, if you move
your configuration files to any directory other than what CONFIG_DIR
was set to as compile time, htsearch is going to have problems finding
the config files.

Unfortunately, there's a bit of a chicken and egg problem here.  You can't
just set config_dir in a config file to override the compiled-in value,
as htsearch can't even file a config file to begin with.  So, there are
really two options: 1) you reset CONFIG_DIR in the source and recompile
htsearch, or 2) you create a wrapper script for htsearch that sets
CONFIG_DIR as an environment variable, to override the compiled-in value.

See http://www.htdig.org/FAQ.html#q5.32
and http://www.htdig.org/FAQ.html#q5.30

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
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