1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
http://www.htdig.org -------------------- 1. Download and unpack: > cd /root/archive > wget http://www.htdig.org/files/htdig-3.2.0b5.tar.gz > tar -xvzf htdig-3.2.0b5.tar.gz 2. Configure and compile: > SITE=/home/httpd/{SITE_NAME}/; ./configure --prefix=/usr/local \ --with-config-dir=$SITE/conf \ --with-search-dir=$SITE/www/htdig \ --with-database-dir=$SITE/htdig \ --with-cgi-bin-dir=$SITE/cgi-bin \ --with-image-dir=$SITE/www/htdig/images \ --with-image-url-prefix=/htdig/images > make > make install 3. Edit config file: edit /home/httpd/{SITE_NAME}/conf/htdig.conf and set the proper values for "start_url" and "maintainer" 4. Build database: > rundig 5. Setup cron job to reindex database nightly: Create a file at /etc/cron.daily/htdig with the following: #!/bin/sh /usr/local/bin/rundig Make the file executable: > chmod 755 /etc/cron.daily/htdig 6. Test: Open a browser and go to: http://{SITE_NAME}/htdig/search.html Try searching to verify that the content has been indexed. |