httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc G. Fournier" <scra...@hub.org>
Subject Re: [HEAD] --with-mpm=worker under FreeBSD 4.5 does nothing?
Date Fri, 11 Jan 2002 17:31:21 GMT
On Fri, 11 Jan 2002, Justin Erenkrantz wrote:

> On Fri, Jan 11, 2002 at 10:27:18AM -0400, Marc G. Fournier wrote:
> >
> > Morning all ...
> >
> > 	Just built a 'jail' environment under a 4.5 system so that I can
> > putz around with Apache2-HEAD, where I could "reformat" at will to clean
> > up any cruft ... build went great, using:
> >
> > #!/bin/sh
> > ./configure  \
> >         --prefix=/usr/local/apache \
> >         --with-perl=/usr/bin/perl \
> >         --enable-so \
> >         --with-suexec-caller=nobody \
> >         --with-mpm=worker \
> >         --enable-threads \
> >         --with-port=80 \
> >         --enable-mods-shared='all cgid ssl proxy proxy-connect proxy-ftp proxy-http
cache mem-cache file-cache'
> >
> > 	Install went as smooth ... but I can't connect ...
> >
> > 	logs/error_log shows:
> >
> > [Fri Jan 11 14:20:17 2002] [info] mod_unique_id: using ip addr 131.162.139.86
> > [Fri Jan 11 14:20:18 2002] [info] mod_unique_id: using ip addr 131.162.139.86
> > [Fri Jan 11 14:20:19 2002] [notice] Digest: generating secret for digest authentication
...
> > [Fri Jan 11 14:20:19 2002] [notice] Digest: done
> > [Fri Jan 11 14:20:19 2002] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten
-- Unclean shutdown of previous Apache run?
> > [Fri Jan 11 14:20:19 2002] [crit] (78)Function not implemented: Fatal error: could
not open(create) scoreboard
> >
> > 	And a ps listing shows no root process, only the one nobody
> > process:
> >
> > jail# ps aux | grep http
> > nobody  83618  0.0  1.1  4224 2924  ??  IJ    2:20PM   0:00.00 bin/httpd
> >
> > 	Even if I comment out the 'ScoreBoard' line in httpd.conf, it
> > gives the 'Function not implemented' error ...
>
> I'm not familiar enough with the "jail," but it sounds like
> anonymous mmap may not be supported in this environment.  Can you
> grep for APR_USE_SHMEM in srclib/apr/include/apr.h and send that?
> I'll bet mmap is returning that error.

jail# grep APR_USE_SHMEM srclib/apr/include/apr.h
#define APR_USE_SHMEM_MMAP_TMP     0
#define APR_USE_SHMEM_MMAP_SHM     0
#define APR_USE_SHMEM_MMAP_ZERO    0
#define APR_USE_SHMEM_SHMGET_ANON  0
#define APR_USE_SHMEM_SHMGET       1
#define APR_USE_SHMEM_MMAP_ANON    1
#define APR_USE_SHMEM_BEOS         0

> Please understand that threads aren't working on FreeBSD.  It's why
> you had to manually enable them.  =)

Thought of that too, so I tried prefork ... got same results ...


> However, worker MPM on FreeBSD isn't usable by anyone at this
> point other than as a conversation piece.  -- justin

Actually, I am using on an older 4.4 jail environment:

Server Version: Apache/2.0.28 (Unix) mod_ssl/3.0a0 OpenSSL/0.9.6 DAV/2

Current Time: Friday, 11-Jan-2002 17:30:18 GMT
Restart Time: Tuesday, 08-Jan-2002 18:28:03 GMT
Parent Server Generation: 0
Server uptime:  2 days 23 hours 2 minutes 15 seconds
Total accesses: 173 - Total Traffic: 163 kB
CPU Usage: u24.5469 s63.2891 cu0 cs0 - .0343% CPU load
.000676 requests/sec - 0 B/second - 964 B/request
1 requests currently being processed, 24 idle workers

Not a heavily loaded server, mind you ... but it is running ...


Mime
View raw message