According to Tham Kuo Feng   NCS:
> Dear Sir, I saw your name on the mailing lists, and you
> seem pretty knowleageable, so I hope you can help. If you
> are unable to spare the time/effort, just let me know.

If you saw my name on the mailing lists, then you're obviously
aware of these lists, so why not use them?  Mail that circumvents
the proper channels usually gets the lowest priority in my mailbox.
See http://www.htdig.org/FAQ.html#q1.16

> I have compiled htdig 3.2.0b4, using the snapshot for
> 30 Dec 2001. Performing rundig was successful. However,
> using the default search.html, which accesses htsearch,
> I get a "Premature end of script headers" error. I believe
> this to be an Apache error (I'm using 2.0.28), but I cannot
> figure out what went wrong. I really hope someone can help.

See http://www.htdig.org/FAQ.html#q5.13

> httpd.conf :
> 
> ScriptAlias /cgi-bin/ "/d01/bonsai/cgi-bin/"
> <Directory "/d01/bonsai/cgi-bin">
>     AllowOverride None
>     Options None

This Options line seems odd to me.  Normally you'd need at least ExecCGI
as an option.  However, if you're getting a "Premature end of script headers"
error, this does seem to imply that it's trying to run the script.  Maybe
not, though.  Look at Apache's error log to see if there are any clues
there, and if you don't get any clear idea from that, at least try enabling
the ExecCGI option and restarting Apache.

>     Order allow,deny
>     Allow from all
> </Directory>
> 
> The htsearch program (binary) is stored
> inside "/d01/bonsai/cgi-bin" directory.
> 
> Apache is started with nobody:nobody.
> 
>   nobody 27027 27025  0 22:19:20 pts/0    0:00 /opt/apache/bin/httpd
>   nobody 27029 27025  0 22:19:20 pts/0    0:00 /opt/apache/bin/httpd
>   nobody 27030 27025  0 22:19:20 pts/0    0:00 /opt/apache/bin/httpd
>   nobody 27026 27025  0 22:19:20 pts/0    0:00 /opt/apache/bin/httpd
>   nobody 27028 27025  0 22:19:20 pts/0    0:00 /opt/apache/bin/httpd
> 
> Apache is compiled with SuExec flags as such :
> 
> "--with-suexec-caller=nobody" \
> "--with-suexec-userdir=/d01/bonsai/www" \
> "--with-suexec-docroot=/d01/bonsai/www" \
> "--with-suexec-safepath=/usr/local/bin:/usr/bin:/bin" \
> 
> htdig is installed in "/opt/htdig", and the binary directory
> for htdig is "/opt/htdig/bin". Is this affected by the
> SuExec-SafePath ?

I'm not familiar with this feature, but the name would imply that it's
for set-uid programs.  You should definitely NOT run htsearch with the
set-uid or set-gid bits enabled, which I see you're not...

> And the files for "/d01/bonsai/cgi-bin" are 
> 
> drwxr-xr-x   2 root     other        512 Jan 10 22:20 .
> drwxr-xr-x   5 root     other        512 Jan 10 15:10 ..
> -rwxr-xr-x   1 root     other    4523725 Jan 10 17:03 htsearch
> -rwxr-xr-x   1 root     other    4315131 Jan 10 17:04 qtest


-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

_______________________________________________
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