Re: htsearch not running from a search.html file
Graeme Nichols <[email protected]> Tue, 08 Jul 2008 15:02:04 +1000
| Newsgroups | gmane.comp.web.htdig.general |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > Graeme, > I am not really a *nix person, but the symptoms you describe suggest > that the web server does not recognise the file as being executable - I > presume that you are running Apache? If so, try a quick Google for > tutorials on setting up CGI programs. > > Regards, > Mike Hi Mike, thanks. I did as you suggested and read through a tutorial from apache on setting it up to run cgi programs. My httpd.conf file is configured correctly. ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" <Directory "/var/www/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> I have copied htsearch to /var/www/cgi-bin and made it executable by all. My ServerRoot is /var/www/html The server works just fine and I can access my web site OK. Other cgi programs I have also work just fine. It is only htsearch that barfs which seems to me to be a htdig problem my htsearch file follows: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>ht://Dig WWW Search</title> </head> <body bgcolor="#eef7ff"> <h1> <a href="http://www.htdig.org"><IMG SRC="/htdig/htdig.gif" align="bottom" alt="ht://Dig" border="0"></a> WWW Site Search</h1> <hr noshade size="4"> This search will allow you to search the contents of all the publicly available WWW documents at this site. <br> <p> <form method="post" action="/cgi-bin/htsearch"> <font size="-1"> Match: <select name="method"> <option value="and">All <option value="or">Any <option value="boolean">Boolean </select> Format: <select name="format"> <option value="builtin-long">Long <option value="builtin-short">Short </select> Sort by: <select name="sort"> <option value="score">Score <option value="time">Time <option value="title">Title <option value="revscore">Reverse Score <option value="revtime">Reverse Time <option value="revtitle">Reverse Title </select> </font> <input type="hidden" name="config" value="htdig"> <input type="hidden" name="restrict" value=""> <input type="hidden" name="exclude" value=""> <br> Search: <input type="text" size="30" name="words" value=""> <input type="submit" value="Search"> </form> <hr noshade size="4"> </body> </html> When I submit the query I still get the following error: You have chosen to open HTSEARCH which is a: BIN file from /cgi-bin Would you like to save this file? I am hoping I can get this fixed. -- Kind regards, Graeme Nichols. ... Registered Linux User 381781 (http://counter.li.org/) ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ ht://Dig general mailing list: <[email protected]> ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html List information (subscribe/unsubscribe, etc.) https://lists.sourceforge.net/lists/listinfo/htdig-general