At 16:29 28/06/01 -0400, John Kowalik wrote:
> I'm attempting to get htdig to run on WinNT using IIS. I've managed to
>compile htdig, and index a site to create a database. I can run htsearch
>from the command line with no problems. I can also run htsearch as a CGI
>using the iPlanet webserver.
>
> However, when I run htsearch as a CGI under either WinNT or Win2k I get
>the following error:
>
>Unable to read configuration file 'c:/htdig/conf/htdig.conf'
>
>My config file is definetly in that location and is world readable. I'm
>guessing I have an IIS configuration problem,
not necessarily
> but I am out of ideas. Can
>anyone provide some insight?
>
>Config:
>WinNT 4.0 Server SP6a w/ IIS 4
>Win2k Professional SP1 w/ IIS 5
>
>Thanks,
>--John
This sounds familiar. Firstly at the command line run
htsearch -c c:/htdig/conf/htdig.conf
(Note forward slashes instead of back slashes)
If this works, you will need to call htsearch from a wrapper script that
passes it the location of the config file.
I used this (the file is called htwrap.pl):
#!c:/perl/bin/perl.exe -w
# wrapper script for windows to tell htsearch where its
# configuration file is
# location of htDig config file - note forward slashes
$config = "d:/htdig/htdig/conf/htdig.conf";
$dir = "d:/htdig/cgi-bin"; # Set cgi-bin dir
# Run htsearch
system("$dir/htsearch -c $config");
exit;
1;
Call it from search.html with
<form method="get" action="/cgi-bin/htwrap.pl">
instead of
<form method="post" action="/cgi-bin/htsearch">
(Note it must be called by "get", not "post")
If you manage to get PDFs indexed under windows I'd be very interested.
Marcus Valentine
_______________________________________________
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