Re: Changing the MPM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Sun, Feb 3, 2013 at 9:34 PM, yogesh hingmire
<yogesh.hingmire@xxxxxxxxx> wrote:

> I recently bought a new Mac book pro, the apache server that comes inbuilt is with a prefork option, here is below listing
>
> Yogeshs-MacBook-Pro:sbin yogesh$ httpd -l
> Compiled in modules:
>   core.c
>   prefork.c
>   http_core.c
>   mod_so.c
>
> However i want to change it to worker mpm.

The httpd that comes with OS X is prefork, there is not much you can
do about it.

> What are my options, do i have to download a fresh apache distribution and recompile and then specify that option in the ./configure script.
> I thought there was another option using the loadmodule directive to dynamically change the mpm.

Not for the MPM, it is compiled in.

> I really dont want to recompile and start from zero to change the mpm.

You can use macports to make it a little less painful.

On RHEL, you can switch the MPM by means of configuration, but what
they actually do is ship multiple httpds and let you choose the one to
start:

$ ls -l /usr/sbin/http*
-rwxr-xr-x 1 root root 341200 feb 13  2012 /usr/sbin/httpd
-rwxr-xr-x 1 root root 356536 feb 13  2012 /usr/sbin/httpd.event
-rwxr-xr-x 1 root root 353112 feb 13  2012 /usr/sbin/httpd.worker

$ /usr/sbin/httpd -l
Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c
$ /usr/sbin/httpd.event -l
Compiled in modules:
  core.c
  event.c
  http_core.c
  mod_so.c
$ /usr/sbin/httpd.worker -l
Compiled in modules:
  core.c
  worker.c
  http_core.c
  mod_so.c

--
Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux