You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Richard de Vries <ri...@yahoo.com> on 2006/02/22 22:23:02 UTC

[users@httpd] apachectl and multiple daemons

I have the need to run multiple daemons off of the
same apache base install. Each daemon will have it's
own configuration file of course, but since they are
all configured pretty much the same (same modules etc)
I don't see a need to have several apache installs.

So, I'd have one install, i.e. 
    /usr/apache/xxxx

with multiple configs, i.e
   /usr/apache/conf/httpd-host1.conf
   /usr/apache/conf/httpd-host2.conf
   /usr/apache/conf/httpd-host3.conf

Is there an "apachectl" script that allows for
multiple daemons to be managed? (start/stop/restart) ?

 R

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apachectl and multiple daemons

Posted by Richard de Vries <ri...@yahoo.com>.
Thanks to everyone who responded to my inquiry. I
indeed wanted process isolation. The server I am
currently building out needs to support several
development groups; all which require their own
webserver instance.

Initially I was wanting to go with IP based virtual
hosting, but this would not allow me to shutdown one
of the instances without affecting the others.
Additionally, a poorly written application in one of
the instances could negatively affect performance
and/or stability of the others as well. So, for this
particular environment I thought it'd be best to run
multiple daemons. (each instance using a unique IP
address).

Anyway, after reading the various replies, I decided
to make some minor modifications to "apachectl" to
support multiple daemons (instances). Now, when
running "apachectl stop|start|restart|graceful" it
will apply to all instances (useful as a /etc/init.d
startup script). However, if I want to
start/stop/restart a particular instance, I can do a
"apachectl start|stop|restart|graceful instance-name"
instead.

So, all is well right now :-)

Thanks again for all your replies!

Cheers,

   Richard



--- "William A. Rowe, Jr." <wr...@rowe-clan.net>
wrote:

> Nick Kew wrote:
> > On Wednesday 22 February 2006 21:23, Richard de
> Vries wrote:
> > 
> >>I have the need to run multiple daemons off of the
> >>same apache base install.
> > 
> > Erm, why?
> 
> Why not?
> 
> >>Each daemon will have it's 
> >>own configuration file of course, but since they
> are
> >>all configured pretty much the same (same modules
> etc)
> >>I don't see a need to have several apache
> installs.
> > 
> > Sounds like you want to read up on virtual hosts.
> 
> No, it sounds like he desires to have process
> isolation for different
> contexts; which is fine.  Many of the end users I
> support professionally
> use this same approach.  Different scoreboards, pid
> files, and logs and
> listeners and you should be golden.
> 
> Bill
> 
>
---------------------------------------------------------------------
> The official User-To-User support forum of the
> Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apachectl and multiple daemons

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Nick Kew wrote:
> On Wednesday 22 February 2006 21:23, Richard de Vries wrote:
> 
>>I have the need to run multiple daemons off of the
>>same apache base install.
> 
> Erm, why?

Why not?

>>Each daemon will have it's 
>>own configuration file of course, but since they are
>>all configured pretty much the same (same modules etc)
>>I don't see a need to have several apache installs.
> 
> Sounds like you want to read up on virtual hosts.

No, it sounds like he desires to have process isolation for different
contexts; which is fine.  Many of the end users I support professionally
use this same approach.  Different scoreboards, pid files, and logs and
listeners and you should be golden.

Bill

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apachectl and multiple daemons

Posted by Nick Kew <ni...@webthing.com>.
On Wednesday 22 February 2006 21:23, Richard de Vries wrote:
> I have the need to run multiple daemons off of the
> same apache base install.

Erm, why?

> Each daemon will have it's 
> own configuration file of course, but since they are
> all configured pretty much the same (same modules etc)
> I don't see a need to have several apache installs.

Sounds like you want to read up on virtual hosts.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apachectl and multiple daemons

Posted by ht...@karsites.net.
I suppose you could split out the common part of each 
httpd.conf file and include that into each apache 
host-specific file you are using at start up.

What about ports though?

Is each apache going to listen on a different port?

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Wed, 22 Feb 2006, Joshua Slive wrote:

> To: users@httpd.apache.org
> From: Joshua Slive <jo...@slive.ca>
> Subject: Re: [users@httpd] apachectl and multiple daemons
> 
> On 2/22/06, Richard de Vries <ri...@yahoo.com> wrote:
> > I have the need to run multiple daemons off of the
> > same apache base install. Each daemon will have it's
> > own configuration file of course, but since they are
> > all configured pretty much the same (same modules etc)
> > I don't see a need to have several apache installs.
> >
> > So, I'd have one install, i.e.
> >     /usr/apache/xxxx
> >
> > with multiple configs, i.e
> >    /usr/apache/conf/httpd-host1.conf
> >    /usr/apache/conf/httpd-host2.conf
> >    /usr/apache/conf/httpd-host3.conf
> >
> > Is there an "apachectl" script that allows for
> > multiple daemons to be managed? (start/stop/restart) ?
> 
> apachectl -f /usr/apache/conf/httpd-host1.conf -k start
> 
> Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apachectl and multiple daemons

Posted by Joshua Slive <jo...@slive.ca>.
On 2/22/06, Richard de Vries <ri...@yahoo.com> wrote:
> I have the need to run multiple daemons off of the
> same apache base install. Each daemon will have it's
> own configuration file of course, but since they are
> all configured pretty much the same (same modules etc)
> I don't see a need to have several apache installs.
>
> So, I'd have one install, i.e.
>     /usr/apache/xxxx
>
> with multiple configs, i.e
>    /usr/apache/conf/httpd-host1.conf
>    /usr/apache/conf/httpd-host2.conf
>    /usr/apache/conf/httpd-host3.conf
>
> Is there an "apachectl" script that allows for
> multiple daemons to be managed? (start/stop/restart) ?

apachectl -f /usr/apache/conf/httpd-host1.conf -k start

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org