tech-pkg archive

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

Re: lang/php{54,55} and www/apache24 does not work without ZTS support



From: matthew sporleder <msporleder%gmail.com@localhost>, Date: Mon, 17 Mar 
2014 10:49:33 -0400

> On Mon, Mar 17, 2014 at 10:22 AM, Greg Troxel <gdt%ir.bbn.com@localhost> 
> wrote:
>>
>> Ryo ONODERA <ryo_on%yk.rim.or.jp@localhost> writes:
>>
>>> php-5.3.28nb2, php-5.4.26 and php-5.5.10 do not work with Apache httpd 
>>> 2.4.7.
>>>
>>> Here is error message.
>>>
>>> [Mon Mar 17 20:49:54.145101 2014] [:crit] [pid 19026:tid 140187728347136] 
>>> Apache is running a threaded MPM, but your PHP Module is not compiled to be 
>>> threadsafe.  You need to recompile PHP.
>>> AH00013: Pre-configuration failed
>>
>> Is this new breakage, or have our php packages/modules always not worked
>> with apache24?
>>
>> Is using a threaded MPM just the way apache24 is, or is this some sort
>> of configuration option?
>>>
>>> PKG_OPTIONS=maintainer-zts (CONFIGURE_ARGS+=--enable-maintainer-zts) for
>>> php5* and ap-php helps this error.
>>
>> But what else does it change?  Is there some reason our php has been
>> compiled without the threads option before?
>>
>> But I see that
>>   /usr/pkg/bin/php
>>   /usr/pkg/libexec/cgi-bin/php:
>>
>> are linked with threads already (in php53), but apparently that's different.
>>
>> I tried to build php53 with that option, and the build failed.
>>
>> I'd like to hear comments from other php/apache users/experts, too.
> 
> 
> It's like an all-or-nothing approach, afaik.  Each module compiled
> from then on will also need zts support.
> 
> I think it's off by default because third party modules aren't all
> necessarily thread safe from the c -> php -> pecl chain.
> - this may be outdated FUD at this point, but it's the assumption I've
> been working with for the past few years.
> 
> In the case of apache24  I highly recommend using mpm_event and
> php_fpm instead of mod_php.

I have not tested php-fpm.
I will try to use it.

Thank you.

--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Home | Main Index | Thread Index | Old Index