You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by yogesh hingmire <yo...@gmail.com> on 2013/02/03 21:34:13 UTC
[users@httpd] Changing the MPM
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.
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.
I really dont want to recompile and start from zero to change the mpm.
Thank You for all your help !!!!!
Yogesh
Re: [users@httpd] Changing the MPM
Posted by Michiel Beijen <mi...@gmail.com>.
Hi Tom,
On Tue, Feb 5, 2013 at 5:41 PM, Tom Evans <te...@googlemail.com> wrote:
> In Apache 2.2 the MPM choice is fixed at compile time, in 2.4 it can
> be changed by loading a module, if and only if loading MPM modules was
> enabled at compile time.
OS X still ships with 2.2 though.
> If it wasn't, compiling httpd yourself only takes a very short amount of time.
Depending on your internet connection, downloading XCode can take a
very large amount of time though!
--
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Changing the MPM
Posted by Tom Evans <te...@googlemail.com>.
On Sun, Feb 3, 2013 at 8:34 PM, yogesh hingmire
<yo...@gmail.com> 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.
>
> 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.
>
> I really dont want to recompile and start from zero to change the mpm.
>
> Thank You for all your help !!!!!
> Yogesh
In Apache 2.2 the MPM choice is fixed at compile time, in 2.4 it can
be changed by loading a module, if and only if loading MPM modules was
enabled at compile time.
If it wasn't, compiling httpd yourself only takes a very short amount of time.
Cheers
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Changing the MPM
Posted by Michiel Beijen <mi...@gmail.com>.
Hi,
On Sun, Feb 3, 2013 at 9:34 PM, yogesh hingmire
<yo...@gmail.com> 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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: Changing the MPM
Posted by vishesh kumar <li...@gmail.com>.
Whats output of below
httpd -t -M
On RHEL we used to change to worker by editing file /etc/sysconfig/httpd
Thanks
On Tue, Feb 5, 2013 at 12:46 AM, yogesh hingmire
<yo...@gmail.com>wrote:
> Folks,
>
> Any inputs on the below problem ? Appreciate all your help
>
> Thank You,
> Yogesh
>
>
> On Sun, Feb 3, 2013 at 2:34 PM, yogesh hingmire <yogesh.hingmire@gmail.com
> > 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.
>>
>> 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.
>>
>> I really dont want to recompile and start from zero to change the mpm.
>>
>> Thank You for all your help !!!!!
>> Yogesh
>>
>
>
--
http://linuxmantra.com
[users@httpd] Re: Changing the MPM
Posted by yogesh hingmire <yo...@gmail.com>.
Folks,
Any inputs on the below problem ? Appreciate all your help
Thank You,
Yogesh
On Sun, Feb 3, 2013 at 2:34 PM, yogesh hingmire
<yo...@gmail.com>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.
>
> 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.
>
> I really dont want to recompile and start from zero to change the mpm.
>
> Thank You for all your help !!!!!
> Yogesh
>