Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5456 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31050 invoked by uid 1010); 14 Nov 2003 00:36:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 30691 invoked from network); 14 Nov 2003 00:36:24 -0000 Received: from unknown (HELO smtp2.pp.htv.fi) (213.243.153.14) by pb1.pair.com with SMTP; 14 Nov 2003 00:36:24 -0000 Received: from posti.pp.htv.fi (posti.pp.htv.fi [212.90.64.50]) by smtp2.pp.htv.fi (Postfix) with ESMTP id 6E35C29715C; Fri, 14 Nov 2003 02:36:24 +0200 (EET) Received: from [192.168.0.101] (cs181008.pp.htv.fi [213.243.181.8]) by posti.pp.htv.fi (8.11.1 (Revision 1.5+JAGae91741+JAGae92668) /8.11.1) with ESMTP id hAE0aOS19563; Fri, 14 Nov 2003 02:36:24 +0200 (EET) Date: Fri, 14 Nov 2003 02:36:23 +0200 (EET) Reply-To: Jani Taskinen To: "Cesare D'Amico" Cc: internals@lists.php.net In-Reply-To: <200311132013.27960.cesare@ngi.it> Message-ID: References: <6.0.0.22.0.20031113092630.03a1d380@wheresmymailserver.com> <20031113170130.GA21700@panix.com> <200311132013.27960.cesare@ngi.it> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Subject: Re: [PHP-DEV] PHP 5 RC1 From: sniper@iki.fi (Jani Taskinen) On Thu, 13 Nov 2003, Cesare D'Amico wrote: >Alle 19:42, gioved=EC 13 novembre 2003, Jani Taskinen ha scritto: >> I made the necessary changes for that to be possible in the config >> side.. > >So you managed to run both php4 and php5 as DSO on the same instance of=20 >the server? How did you do it? (it's really interesting, and it's a=20 >pity that this doesn't work out of the box as it was in the php3/4=20 >period) I thought I said "it crashed" ? (you didn't quote that part..:) And hopefully you also noticed that this was done within Linux, not windows.=20 =20 The basic problem running php4/php5 "same time" is that both php4/php5 use the same trigger for running the scripts on Apache. (application/x-= httpd-php) =20 So I just changed that in php5 sapi/apache/mod_php5.c to=20 php5-script..and also used the handler method instead, like this: =20 AddType application/x-httpd-php .php4 AddHandler php5-script .php5 (I think it was Ken who said that this is actually how it should have b= een since the beginning..using the AddHandler, not AddType.. :) =20 Now, it worked fine as long as only either libphp4.so or libphp5.so was= =20 enabled. If both were enabled -> hangup/crash. =20 I tried compiling both php4/5 with --enable-versioning, and also just the other but that didn't make any difference, it still hung/crash= ed. =20 --Jani