« HotWayDHylaFax »

HTDIG

07/31/04

Permalink 08:51:55 am, by admin Email , 142 words   English (US)
Categories: Apache

HTDIG

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.



September 2010
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      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    

Reliable Penguin offers Linux Server Migrations, Systems Administration & Programming. Visit our main website at:

http://www.reliablepenguin.com

Search

Bookmark and Share

XML Feeds

powered by b2evolution