Re: apache2handler/SIGSEGV with apache2 (prefork)
| From: | William A. Rowe, Jr. | Date: | Tue, 08 May 2007 17:35:44 +0000 |
| Subject: | Re: apache2handler/SIGSEGV with apache2 (prefork) | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-29342@lists.php.net to get a copy of this message | ||
Antony Dovgal wrote:
> On 05/08/2007 04:02 PM, Oliver Block wrote:
>> Am Dienstag, 8. Mai 2007 13:45 schrieben Sie:
>>> What was your configure line?
>>
>> ./configure --with-apxs2=/usr/sbin/apxs2 --prefix=/usr/local/php5
>> --enable-debug --enable-maintainer-zts --with-mysql --with-imap
>> --with-imap-ssl
>>
>> There was a php4 rpm which was installed by the SuSE setup tool (YaST).
>>
>> After removing it, the server started without problems. So this
>> segmentation fault seems to occur, when there are both versions, php4
>> and php5, installed.
>
> Ah, so you're compiling a threadsafe PHP to use with a non-threadsafe
> Apache and loading both PHP4 and PHP5 in the same time.
> This looks like a total misconfiguration.
What non-threadsafe Apache? There are few such Apache 2 beasts. If apr
was installed separately it's almost always going to pick up threads
by default, and since these are YaST packages I'm betting dollars to
donuts that apr comes from it's own rpm. Apache2 itself would therefore
be threadsafe compiled against that apr.
I'm gambling that PHP4 was non-zts and PHP5 was zts, resulting in mass
confusion.