According to Doug Finch:
> I am trying to install htdig (latest version downloaded yesterday) onto a
> virtual server (123hostme) and do not have root permissions.  I found all of
> this out (I am also fairly new to Linux) when it wanted to install in the /opt
> directory and I was unable to create that directory.  I went to the CONFIG file
> and changed the paths to reflect some directories (from the outermost part
> of my home directory) that I had made in hopes of mirroring the structure of
> htdig.  I created (in my home directory) opt/www/ and from there htdig created a
> "cgi-bin" "htdig" and "htdocs" directories with stuff in each.  I thought that
> I was home free and when I ran rundig, it told me that it indexed "x" number of
> pages.  Problem now (until I find more) is that on the search.html page, it
> wants to go to /cgi-bin/htsearch to do its crawling for pages and I cannot get
> anything to work right in that html file.  I have tried to place my entire file
> path from my home directory and it did not work.  I don't know what to do with
> it.  Any help would be much appreciated.

You need to place the htsearch executable into a directory from which
you can run CGI programs, and possibly add a .cgi suffix to it if that's
what the server requires.  Your web hosting company should provide you
with instructions on how to set up CGI programs.

Next, you need to change the action="..." parameter in your search.html
form, so that it refers to the correct URL for your htsearch program,
with the added suffix if you needed to add one.  In a typical setup, you
put htsearch in the cgi-bin directory under the web server's ServerRoot
directory, or wherever the ScriptAlias for /cgi-bin is defined, and
the default path in the search.html, /cgi-bin/htsearch, will work fine.
In a virtual hosting environment, or in any other atypical setup, this
may need to change.

Finally, you'll need to move the opt/www/htdocs/htdig directory to a
place in your virtual server's DocumentRoot directory, so that it's
accessible from the URL "/htdig/".  This is for all the star, button
and logo image files that htsearch will include in result pages.  If you
want to use a different directory name, it gets a bit more complicated.

(Note that ServerRoot, ScriptAlias & DocumentRoot refer to Apache
configuration settings, and different terms may apply if your host uses
a different server package.)

See also http://www.htdig.org/FAQ.html#q5.19
         http://www.htdig.org/FAQ.html#q5.23
         http://www.htdig.org/FAQ.html#q5.13
and      http://www.htdig.org/FAQ.html#q4.16

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

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] 
You will receive a message to confirm this. 


Reply via email to