Administration
  Home arrow Administration arrow Page 3 - Site Search with HTDIG
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM Developerworks
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ADMINISTRATION

Site Search with HTDIG
By: icarus, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 17
    2004-04-12

    Table of Contents:
  • Site Search with HTDIG
  • Digging Deep
  • Source Control
  • Script Barf
  • Variable Control
  • A Well-Formed Plan
  • What You See
  • Custom Job
  • Out With The Old
  • Caveat Emptor
  • Ending The Dig

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Route your faxes to your email inbox. Private, secure fax numbers available from CallWave. Choose your fax number.

    Site Search with HTDIG - Source Control
    (Page 3 of 11 )

    First, you'll need to install ht://Dig on the Linux box you plan to use as a Web server. Drop by the official ht://Dig website and get yourself the latest stable release of the software (this tutorial uses ht://Dig 3.1.6). Note that you will need a C compiler and a running Web server in order to use the software (this tutorial uses GCC 3.2 and Apache 1.3.26).

    Once you've downloaded the source code archive to your Linux server, log in as "root",

     
    [output
    su 
    Password
    : **** 
    [/output

    and extract the source to a temporary directory.

     
    cd /tmp 
    tar -xzvf /home/me/htdig-3.1.6.tar.gz 

    The next step is to configure the package using the provided "configure" script. Before doing this, though, there are a couple of decisions you need to make.

    There are two primary components to ht://Dig: the binaries used to index the site and create the database of search words, and the program used to perform a search on this database and return a result set. The indexing tools, and the database that results from their use, can be placed anywhere in the filesystem, but the search binary must be located in the Web server's CGI directory.

    Additionally, the images used in the result page created after an ht://Dig search must also be located under the Web server root, so that they appear correctly when the page is viewed through a Web browser (assuming, of course, that you're using the default result page templates).

    Given this information, and assuming the Web server is located in "/usr/local/apache/", the server's CGI area is "/usr/local/apache/cgi-bin/" and the server's document root is "/usr/local/apache/htdocs/", you will need to give the "configure" script the following arguments:

     
    cd /tmp/htdig-3.1.6 
    $ ./configure --prefix=/usr/local/htdig 
    --with-cgi-bin-dir=/usr/local/apache/cgi-bin
    --with-image-dir=/usr/local/apache/htdocs/htdig/images 
    --with-image-url-prefix=/htdig/images 
    --with-search-dir=/usr/local/apache/htdocs/htdig/sample 

    This tells the system to install the indexing tools to "/usr/local/htdig/", the CGI search binary to "/usr/local/apache/cgi-bin/", and the result page images and a sample search form to directories under "/usr/local/apache/htdocs/htdig/".

    More Administration Articles
    More By icarus, (c) Melonfire


     

       

    ADMINISTRATION ARTICLES

    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization
    - Advanced Concepts on Dealing with Files and ...
    - Dealing with Files and Filesystems
    - More Hacks for the User Environment in BSD
    - Personalizing the User Environment in BSD
    - Customizing the User Environment in BSD




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway