Reply to Re: [PHP] php 4 & php 5

Your name:

Reply:


Posted by Richard Lynch on 03/05/05 01:06

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация