chmod 0755 htsearch
That is, make the file executable, that should do the trick. You still want to tell apache to handle the file as a cgi-script one way or the other though (either of your tried ones would work), so the file will be executed the right way, and gets the data it needs the right way (through environment vars).
Hope that helps.
|