You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Chris Darroch <ch...@pearsoncmg.com> on 2008/11/03 23:49:21 UTC

mod_unixd troubs?

Hi --

   I've been trying to get trunk to compile and run today, and
if I compile it without mod_unixd (and with the worker MPM) it compiles
and run, but then logs "Server MUST relinquish startup privileges ..."
and exits.  If I try to compile mod_unixd, I get compile-time warnings
about conflicts with os/unix/unixd.h and unixd.c.

   The following hack gets it to compile without mod_unixd (not
the intention, I understand) and run without exiting at startup.
I'm guessing the goal is to remove os/unix/unixd.h and unixd.c?
I tried that, naively, and found that the MPM wouldn't compile
because it uses #include "unixd.h" in mpm.h, etc.

Chris.

Index: os/unix/unixd.c
===================================================================
--- os/unix/unixd.c     (revision 710182)
+++ os/unix/unixd.c     (working copy)
@@ -246,6 +246,8 @@
     
     unixd_config.chroot_dir = NULL; /* none */
 
+    sys_privileges_handlers(1);
+
     /* Check for suexec */
     unixd_config.suexec_enabled = 0;
     if ((apr_stat(&wrapper, SUEXEC_BIN,

Re: mod_unixd troubs?

Posted by Nick Kew <ni...@webthing.com>.
On Tue, 4 Nov 2008 00:27:24 +0000
Nick Kew <ni...@webthing.com> wrote:

> On Mon, 03 Nov 2008 14:49:21 -0800
> Chris Darroch <ch...@pearsoncmg.com> wrote:
> 
> > Hi --
> > 
> >    I've been trying to get trunk to compile and run today, and
> > if I compile it without mod_unixd (and with the worker MPM) it
> 
> Thanks for the heads-up.  Yes, there's more needs doing for the
> prefork/worker/event MPMs.  Hacking on it now, but breakage is
> likely for a while longer.
> 

r711146 fixes the worker MPM, by removing the duplicated stuff.
TBD: make it build mod_unixd when prefork/worker/event MPM
is selected - still need to configure that explicitly.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

Re: mod_unixd troubs?

Posted by Nick Kew <ni...@webthing.com>.
On Mon, 03 Nov 2008 14:49:21 -0800
Chris Darroch <ch...@pearsoncmg.com> wrote:

> Hi --
> 
>    I've been trying to get trunk to compile and run today, and
> if I compile it without mod_unixd (and with the worker MPM) it

Thanks for the heads-up.  Yes, there's more needs doing for the
prefork/worker/event MPMs.  Hacking on it now, but breakage is
likely for a while longer.

-- 
Nick Kew