According to David Whited-Ford:
> I installed htdig a few months ago and it has always worked very well.
> 
> After doing a restore on our web server recently htdig will not run on the
> local machine.
> 
> I have run rundig against another server and it works just fine but not on
> the same box as htdig.

When you say it will not run on the local machine, what do you mean
exactly?  What are the error messages and/or other symptoms of problems?
Does running with -vvv produce usable/meaningful output?  Did you follow
the suggestions in the FAQ (esp. 4.1, 5.25, 5.27, 5.16 & 5.18)?

> I assume this is a permissions problem but after reading the archives I'm
> confused about what they should be.

Maybe, maybe not.  Permissions problems are frequently the cause of
htsearch not running correctly, but they don't frequently affect htdig
and htmerge (or rundig).  Generally, if you can access all your files
from a web browser, htdig should be able to get at them too.

What was it that was restored on your server?  If it was a collection
of web documents, then you should check the read permissions on them
and their directories, and make sure you can access them from your
browser.

> Should ALL of the htdig files have the same owner as the web user? And what
> about ownership of the index.html file htdig is aimed at?

They shouldn't need to be owned by the user ID under which the web
server runs, as long as they're readable and accessible by that user ID.
That generally means having all read permission bits turned on for files,
and all read and execute bits turned on for directories.  This goes for
the documents on your web server, as well as the database, configuration
and template files used by htsearch.  The web server shouldn't need
write access to any of these files, though.

> Also, is the ownership question different for the command line than for
> running a cron job.

That may depend on how you run the cron job.  If you run the cron job
for htdig using the same user ID as the one for which you ran rundig,
then file ownership shouldn't be an issue.  The important thing is to
keep files readable and accessible by others, so just don't do something
brainless like setting "umask 77" before running htdig or rundig, or
before creating web pages or directories for that matter.

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

_______________________________________________
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