Problem solved. Two back-channel posts led to re-running rpm on the 
htdig*.rpm files downloaded via the Red Hat Network up2date service, but not 
completely installed, likely due to up2date's default configuration which
skips any rpm updates that change configuration files. 

"force" was required in "# rpm -Uv --force htdig*.rpm" to override dependency
checks.

One post perceptively suggested trying /var/www/cgi-bin/htsearch from the 
command line to confirm the problem was not with apache's httpd.conf -- 
instead of running htsearch via httpd or from /usr/bin/, as i'd been 
doing. 

Though the problem was already solved, the "bin-cgi-bin" entries added to 
httpd.conf, in an attempt to follow the htdig FAQ's advice were removed and 
httpd restarted. 

Thanks to those who helped. 

best,
AD

At 01:45 2002.02.25 +0700, AD Marshall wrote:
>Hi all, i need help with htdig and apache configuration. Please let me know
>if this is too long and i'll summarize it and you can refer back to this post
>for details. 
>
>Still, this is not *very* long. (Please ;)) I also broke this post up into 
>3 sections to help make it easier to read: 
>
>        "The Problem", "Investigation", "Attempted Fixes".
>
>The Problem
>-----------
>I'm now getting what seems to be an infamous error when i try a search via 
>htdig and apache on Red Hat 7.2. I say "infamous" because the htdig FAQ does
>discuss this. But i've tried to follow the FAQs instructions and it's still not
>working and i'm not even sure if i'm doing this right. 
>
>My browser displays "[500] Internal Server Error" and suggests "More 
>information about this error may be available in the server error log." 
>
>Investigation:
>-------------
>/httpd/error_log does indeed contain this:
>[Sun Feb 24 18:51:13 2002] [error] [client 192.168.8.9] Premature end of script 
>headers: /var/www/cgi-bin/htsearch
>htsearch: relocation error: htsearch: undefined symbol: config__15HtConfiguration
><end>
>
>../htdig-3.2.0/FAQ.html#q5.23 advises, 'An increasingly common problem is Apache 
>configurations which expect all CGI scripts to be Perl, rather than binary 
>executables or other scripts, so they use "perl-handler" rather than "cgi-handler". 
>The fix is to create a separate directory for non-Perl CGI scripts, and define it 
>as such in your httpd.conf file. You should define it the same way as your existing 
>cgi-bin directory, but use "cgi-handler" instead of "perl-handler".' 
>
>But /etc/httpd/conf/httpd.conf on my machine does not include "perl-handler". 
>Instead, it has "PerlHandler" in this section:
>
>    # If the perl module is installed, this will be enabled.
>    <IfModule mod_perl.c>
>      Alias /perl/ /var/www/perl/
>      <Location /perl>
>        SetHandler perl-script
>        PerlHandler Apache::Registry
>        Options +ExecCGI
>      </Location>
>    </IfModule>
>
>Attempted Fixes:
>---------------
>My httpd.conf now has these entries:
>
>    # Default ScriptAlias from Apache & Red Hat
>    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
>
>    <Directory "/var/www/cgi-bin">
>        AllowOverride None
>        Options ExecCGI
>        Order allow,deny
>        Allow from all
>    </Directory>
>
>    # Special ScriptAlias added for htdig
>    ScriptAlias /htdig-cgi/ "/var/www/bin-cgi-bin/"
>
>    <Directory "/var/www/bin-cgi-bin">
>        AllowOverride None
>        Options +ExecCGI
>        Order allow,deny
>        Allow from all
>    </Directory>
>
>I copied /var/www/cgi-bin/ to /var/www/bin-cgi-bin/ and restarted 
>httpd (several times, since i added these changes step-by-step), 
>but still no luck. 
>
>What am i doing wrong? What should i do? 
>
>Thanks,
>AD Marshall
>
>
>_______________________________________________
>htdig-general mailing list <[EMAIL PROTECTED]>
>To unsubscribe, send a message to <[EMAIL PROTECTED]> with 
>a subject of unsubscribe
>FAQ: http://htdig.sourceforge.net/FAQ.html 


_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to