Re: php 4 & php 5

From: Date: Fri, 04 Mar 2005 23:06:45 +0000
Subject: Re: php 4 & php 5
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-210052@lists.php.net to get a copy of this message
timothy johnson wrote: > Is there a way to install two version of php on the same machine, and > use them for two different users? Option 1: Install two copies of Apache, with different httpd.conf files, on two different ports. Somebody gets stuck using http://example.com:81 (or any port but 80) but this gives everything you asked for. Option 2: Use --enable-versioning while compiling PHP. This definitely allowed for PHP3 and PHP4 and *might* allow for 4&5... Or not. RTFM But you won't get different Users. Option 3: Install at least one of the two as CGI (fastCGI, whatever), and use a different extension (.php4 or .php5) or use other means (ForceType, AddHandler, AddType, etc) to change which is used on a per directory basis. Use suexec, if you UNDERSTAND THE RAMIFICATIONS to alter the user of the CGI process. Mis-use of suexec is incredibly dangerous. YMMV NAIAA IANAL The CGI usage will lose some minimal functionality. HTTP Authentication springs to mind, but there are 3 or 4 functions/features that just plain won't work in CGI. RTFM Option 4: In terms of expenses/headaches, you will probably be better off just buying a second machine. Problem solved. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#210052) next »