Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30886 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49567 invoked by uid 1010); 13 Jul 2007 09:51:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 49552 invoked from network); 13 Jul 2007 09:51:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jul 2007 09:51:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=giunta.gaetano@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=giunta.gaetano@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.166.178 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: giunta.gaetano@gmail.com X-Host-Fingerprint: 64.233.166.178 py-out-1112.google.com Received: from [64.233.166.178] ([64.233.166.178:59248] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/45-33257-13B47964 for ; Fri, 13 Jul 2007 05:51:45 -0400 Received: by py-out-1112.google.com with SMTP id f31so1178883pyh for ; Fri, 13 Jul 2007 02:51:43 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=LnwslFR05PenbJQJ7bI/ms4fZcGCDPcZMNIl8Az5fVVZcrs2NQomGEbkEnz4CNUSc9PYPOn0IGryg8Ba5Mm3xGDyssef3ak/hVC7lFKy2cpEWczjocuYilV/XgyeEBmQWzlt1M/ctOHCjasatfQ823WcbZDKT57SCm30WXokwcw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=K2drcyIeh4IJD5QcCf1/DKr50vmDAe7/leNrDb/x9VmNYnePTiSq48WCRcVHt7372V9F8ElAxt3G2Ml7M9rmj4WJAt3BgV2WbFASvhB5z1JycPPn5hlML0K12ymCyapn2a7kjF1feR3kpUGv24G9G033Eoh9dGnN61uVDz0Zj7g= Received: by 10.64.181.12 with SMTP id d12mr2647365qbf.1184320302960; Fri, 13 Jul 2007 02:51:42 -0700 (PDT) Received: by 10.65.235.13 with HTTP; Fri, 13 Jul 2007 02:51:42 -0700 (PDT) Message-ID: <9bf34f240707130251gd0586c4h699d2c4cbc44c402@mail.gmail.com> Date: Fri, 13 Jul 2007 11:51:42 +0200 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_21165_20837846.1184320302923" Subject: Re: [PHP-DEV] Apache handler with Multiple PHP versions From: giunta.gaetano@gmail.com ("Gaetano Giunta") ------=_Part_21165_20837846.1184320302923 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline > On 7/12/07, chris# wrote: >> >> >> >> On Thu, 12 Jul 2007 11:38:44 +0200, Tijnema wrote: >> > Hello Richard, >> > >> > On 7/12/07, Richard Lynch wrote: >> >> On Wed, July 11, 2007 6:13 pm, Tijnema wrote: >> >> > On 7/12/07, Jani Taskinen wrote: >> >> >> A lot easier (and works already) is to install PHP as CGI/FastCGI >> >> >> (one version or all of them, one can be module of course) and define >> >> >> the >> >> >> required PHP version by the file suffix.. >> >> >> >> >> >> --Jani >> >> > >> >> > Hello Jani: >> >> > >> >> > I know this is possible, and I believe it is possible in Apache too >> >> > with some kind of hack? >> >> > But this still doesn't solve a lot of problems, but will generate a >> >> > lot more with portable code. Take a bulletin board for example, there >> >> > are a lot of files inside a board, and when you want to install that >> >> > on your host that has PHP5 for files with .php5, you need to rename a >> >> > hell lot of files to .php5, AND change code inside the .php5 files to >> >> > point to the renamed files. >> >> >> >> No, you add a config in httpd.conf or add to .htaccess a >> >> line like >> >> >> >> ForceType whatever/gets/you/to/php-5 >> >> >> > >> > 1) Did you ever see a shared host that has multiple versions >> > configured like this? >> > 2) This will end up to be confusing for the end user, as they will >> > need to create the .htaccess file (as most users don't have write >> > rights for httpd.conf) >> This is no more unusual that adding/eliminating directory access. >> Which is pretty common stuff for users on a hosting companies box. >> Extremely simple too. The hosting outfit will /surely/ indicate >> any changes they need to make to provide them with the /added/ >> functionality. Maybe even add an applet in the Cpanel for it. > > My host hasn't a single .htaccess file ;) > (Using DirectAdmin..) Not really an excellent option for web hosters, but the easiest way I set up "alot" of php versions on my dev box (1 as apache module, all the rest cgi, of course) is using virtual hosts: every virtual host listens to either a different port or a different server name, eg: php4server.my.domain, and binds .php and .inc files to a different cgi app/php version. This way there is no need to rename files or keep multiple copies around, and it is pretty useful eg. for heavy unit testing: if the code does not work in a particular php version, add some hackish ifdef equivalent and you're done. Bye Gaetano ------=_Part_21165_20837846.1184320302923--