# lib-httpd/apache.conf and mod_unixd.so

3 messages from 2016-06-16 to 2016-06-16. Participants: Duy Nguyen, Jeff King.
Thread: https://gitlist.dev/t/42583

## Duy Nguyen, 2016-06-12 10:48

Subject: lib-httpd/apache.conf and mod_unixd.so
Message-ID: <CACsJy8D8e2R9YZGGFQR-AC0OtWWYriuJoTmvtG4VuqdfPZGXeQ@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8D8e2R9YZGGFQR-AC0OtWWYriuJoTmvtG4VuqdfPZGXeQ%40mail.gmail.com

```
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, 2016-06-12 13:00

Subject: Re: lib-httpd/apache.conf and mod_unixd.so
Message-ID: <20160612130044.GB15289@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20160612130044.GB15289%40sigill.intra.peff.net
In-Reply-To: <CACsJy8D8e2R9YZGGFQR-AC0OtWWYriuJoTmvtG4VuqdfPZGXeQ@mail.gmail.com>

```
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)?

-Peff

```

## Duy Nguyen, 2016-06-12 14:20

Subject: Re: lib-httpd/apache.conf and mod_unixd.so
Message-ID: <CACsJy8BSF0PxkHoEXkW7nT4dn2ELnUuQA4VZSNZYgVWwerb-kA@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8BSF0PxkHoEXkW7nT4dn2ELnUuQA4VZSNZYgVWwerb-kA%40mail.gmail.com
In-Reply-To: <20160612130044.GB15289@sigill.intra.peff.net>

```
On Sun, Jun 12, 2016 at 8:00 PM, Jeff King <peff@peff.net> wrote:
> 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

```
