You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by tf...@ibsys.com on 2002/08/12 21:52:58 UTC
Multiple Apache Instances?
I'm trying to setup multiple Apache 1.3.26 instances on a
Solaris 8 server buy making two different builds in two
different prefix dirs (/usr/local/apache and
/usr/local/apache-2)
The first build of Apache will start just fine, but when I
try to start the second build, I get this in the error log:
mmap: Bad file number
httpd: Could not mmap memory
Is there some trick to make the two different Apache server
instances not use the same shared memory space?
Thanks.
--
Timothy W. Foreman ~ System Administrator ~ (651) 365-4181
Internet Broadcasting Systems, Inc. ~ tforeman@ibsys.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
bug in mod_action?
Posted by Hugh Stewart <hu...@ugs.com>.
I believe I have found a bug in httpd-2.0.39 mod_actions.c
This sets the allowed actions to include methods it knows about,
but I think the definition has moved (been duplicated?) in Apache 2.
There used to be a rec->allowed field, but there is now a
rec->allowed_methods one too.
The code at about line 180 said:-
/* Set allowed stuff */
for (i = 0; i < METHODS; ++i) {
if (conf->scripted[i])
r->allowed |= (AP_METHOD_BIT << i);
I changed it to say
/* Set allowed stuff */
for (i = 0; i < METHODS; ++i) {
if (conf->scripted[i])
{ /* Hugh -- set r->allowed_methods->method_mask too cos I think that's the
newfangled equivalent */
r->allowed |= (AP_METHOD_BIT << i);
if (r->allowed_methods)
{
r->allowed_methods->method_mask |= (AP_METHOD_BIT << i);
}
}
and an OPTIONS command now gives the commands mod_actions supports
whereas previously it gave Allow: GET,HEAD,POST,OPTIONS,TRACE
regardless of any Script configuration commands to mod_actions.
(The actual methods were correctly implemented by mod_actions, if
your browser knew to ask for them)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Multiple Apache Instances?
Posted by Tony Vinayak <tv...@optonline.net>.
Firing up multiple instances of Apache shouldn't really create much
theatricals as long as they don't compete for same port numbers...are you
using "MMapFile" directive per chance? You may also want to check other
little annoyances like the directives in apache-2's conf file referring to
objects in apache-1's file space, esp. if you copied stuff over from
apache-1 to apache-2.
cheers,
Tony
----- Original Message -----
From: <tf...@ibsys.com>
To: <us...@httpd.apache.org>
Sent: Monday, August 12, 2002 3:52 PM
Subject: Multiple Apache Instances?
> I'm trying to setup multiple Apache 1.3.26 instances on a
> Solaris 8 server buy making two different builds in two
> different prefix dirs (/usr/local/apache and
> /usr/local/apache-2)
>
> The first build of Apache will start just fine, but when I
> try to start the second build, I get this in the error log:
>
> mmap: Bad file number
> httpd: Could not mmap memory
>
> Is there some trick to make the two different Apache server
> instances not use the same shared memory space?
>
> Thanks.
> --
> Timothy W. Foreman ~ System Administrator ~ (651) 365-4181
> Internet Broadcasting Systems, Inc. ~ tforeman@ibsys.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org