> Use ReplaceRules to remove the /var/www part.
Ok, got that part working great. Now, the last part I need to do is to
make it look like the rest of my site. In swish.cgi I have this line:
my $DEFAULT_CONFIG_FILE =
'/usr/local/apache2/cgi-bin/wals/search/conf/swishcgi.conf';
Here is my swishcgi.conf:
return {
title => 'Search WALS Online',
swish_binary =>
'/usr/local/apache2/cgi-bin/wals/search/src/swish-e',
swish_index =>
'/usr/local/apache2/cgi-bin/wals/search/swish.index',
metanames => [qw/swishdefault swishdocpath swishtitle/],
display_props => [qw/swishtitle swishdescription swishdocsize
swishdocpath/],
description_prop => 'swishdescription',
title_property => 'swishdocpath',
name_labels => {
swishdefault => 'Search All',
swishtitle => 'Title',
swishrank => 'Rank',
swishlastmodified => 'Last Modified Date',
swishdocpath => 'Document Path',
swishdocsize => 'Document Size',
all => 'All',
},
max_query_length => 100,
highlight => {
package => 'PhraseHighlight',
show_words => 10, # Number of swish words words to
show around highlighted word
max_words => 100, # If no words are found to
highlighted then show this many words
occurrences => 6, # Limit number of occurrences of
highlighted words
#highlight_on => '<b>', # HTML highlighting codes
#highlight_off => '</b>',
highlight_on => '<font style="background:#FFFF99">',
highlight_off => '</font>',
# This maps search metatags to display properties.
meta_to_prop_map => {
swishdefault => [ qw/swishtitle swishdescription/ ],
swishtitle => [ qw/swishtitle/ ],
swishdocpath => [ qw/swishdocpath/ ],
all => [ qw/swishtitle swishdescription
swishdocpath/ ],
},
},
template => {
package => 'TemplateToolkit',
file => 'search.tt',
options => {
INCLUDE_PATH =>
'/usr/local/apache2/cgi-bin/wals/search/conf',
#PRE_PROCESS => 'config',
},
},
};
When I run swish.cgi from a browser, I get this:
Software Error
Please check error log
Yet, when I check the error log, it's empty.
running./swish.cgi from a command line gives me an error too, here's the
first part of it:
./swish.cgi Base class package "Template::Base" is empty.
(Perhaps you need to 'use' the module which defines that package
first.) at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/Template.pm line 25
BEGIN failed--compilation aborted at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/Template.pm line 25.
Does HTML::Template need to be installed?
Am I doing something else wrong?
Jody
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users