You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by john sachs <js...@covalent.net> on 2001/10/23 23:13:24 UTC
suexec broke?
current apache with mod_suexec bails on cgis.
is this a known issue?
i didnt see anything like it in STATUS...
all cgis fail with:
[Tue Oct 23 14:04:33 2001] [error] [client 127.0.0.1] Premature end of script headers: /home/john/public_html/suexec.cgi
same cgis works when mod_suexec is not loaded.
-j
Re: suexec broke?
Posted by Rodent of Unusual Size <Ke...@Golux.Com>.
john sachs wrote:
>
> + 1. What does ls -l show for the suexec binary? It's probably in
> + <prefix>/bin/
How about the output from 'suexec -V' (executed as root)?
It doesn't look like you included '--with-suexec-logfile=foo'
in your configuration.. except that only suexec reports on
that; httpd doesn't. (Makes a twisted sort of sense,
since it's only used by suexec and not by httpd..)
--
#ken P-)}
Ken Coar, Sanagendamgagwedweinini http://Golux.Com/coar/
Author, developer, opinionist http://Apache-Server.Com/
"All right everyone! Step away from the glowing hamburger!"
Re: suexec broke?
Posted by Greg Ames <gr...@remulak.net>.
john sachs wrote:
> still happening with current apache, just cvs up'd oct24 about 9:30a.
> + 3. Is there anything in the suexec log?
>
> suexec log does not exist.
That's the only thing that looks odd to me. Did you configure it?
Greg
Re: suexec broke?
Posted by john sachs <js...@covalent.net>.
On Tue, Oct 23, 2001 at 11:21:52PM -0400, Greg Ames wrote:
+ john sachs wrote:
+ > all cgis fail with:
+ > [Tue Oct 23 14:04:33 2001] [error] [client 127.0.0.1] Premature end of script headers: /home/john/public_html/suexec.cgi
+
+ yeah, that message sucks canal water. It's about the only thing we log
+ if a cgi blows up in 2.0. We need to do something better.
still happening with current apache, just cvs up'd oct24 about 9:30a.
+ 1. What does ls -l show for the suexec binary? It's probably in
+ <prefix>/bin/
[john@doom:~/ap2/apache-2.0-suexec] ./bin/httpd -V
Server version: Apache/2.0.27-dev
Server built: Oct 24 2001 09:30:53
Server's Module Magic Number: 20011002:0
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_FILE_BASED_SHM
-D APR_HAS_MMAP
-D APR_HAVE_IPV6
-D APR_USE_FCNTL_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/home/john/ap2/apache-2.0-suexec"
-D SUEXEC_BIN="/home/john/ap2/apache-2.0-suexec/bin/suexec"
-D DEFAULT_ERRORLOG="logs/error_log"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
[john@doom:~/ap2/apache-2.0-suexec] ls -l /home/john/ap2/apache-2.0-suexec/bin/suexec
-rwsr-xr-x 1 root root 48557 Oct 24 09:55 /home/john/ap2/apache-2.0-suexec/bin/suexec*
[john@doom:~/ap2/apache-2.0-suexec]
+
+ 2. Do "strings httpd | grep <prefix>" . You should see some suexec
+ related stuff. Does it look right?
+
looks right to me.
[john@doom:~/ap2/apache-2.0-suexec] strings ./bin/httpd |grep /home/john/ap2/apache-2.0-suexec
/home/john/ap2/apache-2.0-suexec/lib
-D HTTPD_ROOT="/home/john/ap2/apache-2.0-suexec"
-D SUEXEC_BIN="/home/john/ap2/apache-2.0-suexec/bin/suexec"
/home/john/ap2/apache-2.0-suexec
/home/john/ap2/apache-2.0-suexec/htdocs
/home/john/ap2/apache-2.0-suexec/bin/suexec
+ 3. Is there anything in the suexec log?
suexec log does not exist.
-j
Re: suexec broke?
Posted by Greg Ames <gr...@remulak.net>.
john sachs wrote:
>
> current apache with mod_suexec bails on cgis.
> is this a known issue?
> i didnt see anything like it in STATUS...
>
> all cgis fail with:
> [Tue Oct 23 14:04:33 2001] [error] [client 127.0.0.1] Premature end of script headers: /home/john/public_html/suexec.cgi
yeah, that message sucks canal water. It's about the only thing we log
if a cgi blows up in 2.0. We need to do something better.
> same cgis works when mod_suexec is not loaded.
I'm glad to see someone is trying to use suexec besides me. It gets
used on daedalus every time you access httpd://bugs.apache.org/
Questions:
1. What does ls -l show for the suexec binary? It's probably in
<prefix>/bin/
2. Do "strings httpd | grep <prefix>" . You should see some suexec
related stuff. Does it look right?
3. Is there anything in the suexec log?
If the answer to #2 is no, I committed a patch to httpd.h earlier today
that might help.
Greg