You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Don Hill <ju...@gmail.com> on 2013/04/17 00:41:22 UTC

[users@httpd] worker.c config in prefork.c module

I am working on apache the following apache 2.2.15 server on redhat with
the prefork.c module compiled in(see below). I have noticed that there is
no <IfModule prefork.c> but there is one for <IfModule worker.c>

So will this worker config be used or revert to default prefork.c config?
Also the eyc/sysconfig/httpd has the worker line commented out

Here is the worker.c -  will this config even be used with the following
configuration

<IfModule worker.c>
#StartServers        1
StartServers        32
MaxClients          512
MinSpareThreads     1
MaxSpareThreads     512
#ThreadsPerChild     256
ThreadsPerChild     32
MaxRequestsPerChild 10000
</IfModule>




httpd -l
Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c

httpd -V
Server version: Apache/2.2.15 (Unix)
Server built:   Feb  7 2012 09:50:11
Server's Module Magic Number: 20051115:24
Server loaded:  APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/etc/httpd"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_PIDLOG="run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

Re: [users@httpd] worker.c config in prefork.c module

Posted by Don Hill <ju...@gmail.com>.
Thanks. After much reading figured out redhat ships with 2 executables, one
with worker.c. I just need to change  /etc/sysconfig/httpd.

Thanks.


On Tue, Apr 16, 2013 at 6:15 PM, Daniel Ruggeri <DR...@primary.net>wrote:

> On 4/16/2013 5:41 PM, Don Hill wrote:
> > I am working on apache the following apache 2.2.15 server on redhat
> > with the prefork.c module compiled in(see below). I have noticed that
> > there is no <IfModule prefork.c> but there is one for <IfModule worker.c>
> >
> > ...
>
> The <IfModule worker.c> would evaluate as 'false' meaning all of those
> configuration directives will note be applied.
>
> --
> Daniel Ruggeri
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] worker.c config in prefork.c module

Posted by Daniel Ruggeri <DR...@primary.net>.
On 4/16/2013 5:41 PM, Don Hill wrote:
> I am working on apache the following apache 2.2.15 server on redhat
> with the prefork.c module compiled in(see below). I have noticed that
> there is no <IfModule prefork.c> but there is one for <IfModule worker.c>
>
> ...

The <IfModule worker.c> would evaluate as 'false' meaning all of those
configuration directives will note be applied.

--
Daniel Ruggeri



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org