threads / discuss / 42583

lib-httpd/apache.conf and mod_unixd.so

Subject: lib-httpd/apache.conf and mod_unixd.so

## tl;dr

3 messages between Jun 16, 2016 and Jun 16, 2016.

replies: 2people: 2as markdown or json

Duy Nguyen· Jun 12, 2016, 10:48 UTC · lore

I need help from apache experts. On my system (gentoo 64bit, apache-2.4.20), running an httpd test gives me

-- 8< -- Initialized empty Git repository in /home/pclouds/w/git/temp/t/trash directory.t5539-fetch-http-shallow/.git/ checking prerequisite: NOT_ROOT

mkdir -p "$TRASH_DIRECTORY/prereq-test-dir" &&
(
        cd "$TRASH_DIRECTORY/prereq-test-dir" &&
        uid=$(id -u) &&
        test "$uid" != 0
)
prerequisite NOT_ROOT ok
[Sun Jun 12 10:42:19.958873 2016] [core:crit] [pid 31585] AH00136:
Server MUST relinquish startup privileges before accepting
connections.  Please ensure mod_unixd or other system security module
is loaded.
AH00016: Configuration Failed
1..0 # SKIP web server setup failed
-- 8< --

A quick search shows that loading mod_unixd.so will do (and did make httpd run for me). Problem is, can I just update apache.conf to load it when apache version >= 2.4? I don't know if doing that would cause failure for other people because mod_unixd has existed since 2.2 and people have run httpd tests fine so far...

-- 
Duy
Jeff King· Jun 12, 2016, 13:00 UTC · re: Duy Nguyen · lore

Re: lib-httpd/apache.conf and mod_unixd.so

On Sun, Jun 12, 2016 at 05:48:42PM +0700, Duy Nguyen wrote:
Show 5 quoted lines
> A quick search shows that loading mod_unixd.so will do (and did make
> httpd run for me). Problem is, can I just update apache.conf to load
> it when apache version >= 2.4? I don't know if doing that would cause
> failure for other people because mod_unixd has existed since 2.2 and
> people have run httpd tests fine so far...

Are you running a version that has 5922322 (t/lib-httpd: load mod_unixd, 2015-05-11)?

-Peff
Duy Nguyen· Jun 12, 2016, 14:20 UTC · re: Jeff King · lore

Re: lib-httpd/apache.conf and mod_unixd.so

On Sun, Jun 12, 2016 at 8:00 PM, Jeff King <peff@peff.net> wrote:
Show 10 quoted lines
> On Sun, Jun 12, 2016 at 05:48:42PM +0700, Duy Nguyen wrote:
>
>> A quick search shows that loading mod_unixd.so will do (and did make
>> httpd run for me). Problem is, can I just update apache.conf to load
>> it when apache version >= 2.4? I don't know if doing that would cause
>> failure for other people because mod_unixd has existed since 2.2 and
>> people have run httpd tests fine so far...
>
> Are you running a version that has 5922322 (t/lib-httpd: load mod_unixd,
> 2015-05-11)?

Nope. This is nd/shallow-deepen which has a really old base. Good to know it's already fixed.

-- 
Duy

← back to recent threads