Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74129 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40183 invoked from network); 12 May 2014 14:10:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 May 2014 14:10:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:40753] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/F4-10689-346D0735 for ; Mon, 12 May 2014 10:10:11 -0400 Received: from [192.168.2.31] (ppp-93-104-4-29.dynamic.mnet-online.de [93.104.4.29]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id CFF564668C; Mon, 12 May 2014 16:11:05 +0200 (CEST) To: Martin Keckeis Cc: Andrea Faulds , Jan Ehrhardt , PHP internals In-Reply-To: References: <5369CED9.5010001@php.net> <4339111475046055305@unknownmsgid> <1F1617B3-5338-484F-9EC4-B5C78623F364@ajf.me> Content-Type: text/plain; charset="UTF-8" Date: Mon, 12 May 2014 16:09:55 +0200 Message-ID: <1399903796.3896.34.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] phpng: Refactored PHP Engine with Big Performance Improvement From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Thu, 2014-05-08 at 23:20 +0200, Martin Keckeis wrote: > Am 07.05.2014 15:18 schrieb "Andrea Faulds" : > > > > > > On 7 May 2014, at 14:13, Jan Ehrhardt wrote: > > > > > Zeev Suraski in php.internals (Wed, 7 May 2014 09:36:14 +0300): > > >> Seriously, I can't think of any *real* reason of why anybody would > > >> need something other than these SAPIs in 2014 (other than FUD). > > >> Things like ISAPI and other more esoteric SAPIs are no brainers, and > > >> while mod_php may be a bit more of a leap of faith, it doesn't truly > > >> brings any tangible benefits over FastCGI (none that can't be > > >> relatively easily replicated in userland anyway, eg htscanner). > > > > > > Is Fastcgi capable of supporting 2 versions of PHP? I still need PHP 5.3 > > > for Drupal6, but Drupal7, Wordpress, Modx and the like profit from PHP > > > 5.5. If there was a way to run both versions as Fastcgi, I would happily > > > go along with you. But I haven't found out how to do that, so one of > > > the two still is mod_php. > > > > > > Correct me if I’m wrong, but don’t you simply need to have two PHP > > versions installed (5.3 FastCGI and 5.5 FastCGI) and then reference the > > appropriate ones in your server configuration files? The hard bit would be > > the dual installation (you’d probably need to build from source), but > > having the web server handle both should be trivial. If there is need is relatively easy for distributors to provide different versions installed to different locations. They can't easily enable both in the server, though, and the user has to configure vhosts or such, which is quite obvious. > The only problem is when you need the "php" global command for both > versions... Either have only one in $PATH and use absolute path for the other or give explicit names. i.e. by symlinks. Distributions could easily create such a setup: /usr/bin/php55 -> /usr/php55/bin/php /usr/bin/php56 -> /usr/php56/bin/php /usr/bin/php -> /etc/alternatives/php johannes