On Fri, 12 Nov 2004 23:37:36 -0500 "Rob Ramsey" <[EMAIL PROTECTED]> wrote:

> I modified the values for DBDIR, COMMONDIR, and BINDER in rundig to
> match the current installation folders.  If I need to make these changes
> to htsearch where/how do I do this please.

In htdig.conf which you should find in /etc or /etc/conf or /etc/htdig
You need to change the settings for database_dir: and common_dir:



> Ok, I may need to tackle this option later. For now the default config
> file should work? Yes or No?

Yes, provided it is where htsearch was compiled to look for it.  


> >  Have you verified the basic operation of cgi in general by dropping
> >  a little perl script into /usr/bin <<Arrghh!  see below!>> and
> >  checking that it can be run from a form?
> 
> No, I am not sure if I am capable of doing this.

OK, it's very easy.
   - Create a directory /var/www/cgi-bin  (if it's not already there)
   - put the attached file into there and make sure that the file
         permissions allow read and execute for everyone.  WHM almost
         certainly has some tools to do this.
   - paste this address into a web browser
         http://address.of.your.site/cgi-bin/envprint.pl

   - you should get a list of the environment variables passed by Apache 
         to the script

      
>    But to address your concern over the actual location of the script
>    and the ScriptAlias I created, why isn't htsearch installed in the
>    cgi-bin directory?  

Only the author of the rpm knows, but my guess is that the actual
locatation of cgi-bin is not constant between different http servers, so
(s)he took the view that /usr/bin is guaranteed to exist, and the
installer should know enough about Linux to sort it out.


> Should I write a script to call htsearch and place that in the cgi-bin
> directory. If so is there an example somewhere?  I do not want any
> security holes on the server.  

Don't write any scripts yet.  By now you should have a working cgi-bin
where Apache can see it, so copy htsearch into there, remembering to
get the permissions the same as the Perl script.  And delete that
section of the Apache config that allows the world to execute anything
in /usr/bin!



Mike
-- 
Mike Causer                          Email - mailto:[EMAIL PROTECTED]
GPG KeyID 1C2DDA07                       WWW - http://www.mikecauser.com
Flood the fen again! - Wicken Fen enlargement - http://www.wicken.org.uk
#!/usr/bin/perl
#
#  envprint.pl
#  MikeC  2004 Oct 11
#
print "Content-type: text/html\n\n";

print "<html><head><Title>CGI environment</title></head><body>\n";

print "<b>Date: ", scalar localtime, "</b><br><br>\n";

foreach $key (keys %ENV) { print "$key --> $ENV{$key}<br>\n"; }

print "</body></html>\n";

Reply via email to