You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Rose, John B" <jb...@utk.edu> on 2016/01/07 22:51:05 UTC

[users@httpd] proper MPM and mod_php

Apache 2.4
Red Hat Linux

Is using "event" MPM and mod_php ok, or should "prefork" always be used with mod_php?

Thanks


Re: [users@httpd] proper MPM and mod_php

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Eric,

On 1/7/16 5:47 PM, Eric Covener wrote:
> On Thu, Jan 7, 2016 at 4:51 PM, Rose, John B <jb...@utk.edu> wrote:
>> Is using "event" MPM and mod_php ok, or should "prefork" always be used with
>> mod_php?
> 
> The conventional wisdom is prefork-only if you must use mod_php.

I was just looking at this yesterday on my Amazon Linux VM, and the
package-managed config for mod_php looks like this:

<IfModule prefork.c>
  LoadModule php5_module modules/libphp-5.5.so
</IfModule>

<IfModule !prefork.c>
  LoadModule php5_module modules/libphp-zts-5.5.so
</IfModule>

So it looks like there is a module that has been built with an eye
toward thread-safety. That module may be available in John's environment
as well.

Thanks,
-chris

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


Re: [users@httpd] proper MPM and mod_php

Posted by Eric Covener <co...@gmail.com>.
On Thu, Jan 7, 2016 at 4:51 PM, Rose, John B <jb...@utk.edu> wrote:
> Is using "event" MPM and mod_php ok, or should "prefork" always be used with
> mod_php?


The conventional wisdom is prefork-only if you must use mod_php.

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