PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.comp.lang.php > PHP4 and PHP5 together on 1 LAMP
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
PHP4 and PHP5 together on 1 LAMP

Réponse
 
LinkBack Outils de la discussion
Vieux 05/07/2007, 09h17   #1
Pugi!
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut PHP4 and PHP5 together on 1 LAMP

Is it possible to run PHP4 and PHP5 simultaneously on 1 webserver
(LAMP) ?
I guess it is, but how and what are the pros and cons ?
Should one consider this safe for a production environment ?

thanx,

JM

  Réponse avec citation
Vieux 06/07/2007, 08h37   #2
peter
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PHP4 and PHP5 together on 1 LAMP

> Is it possible to run PHP4 and PHP5 simultaneously on 1 webserver
> (LAMP) ?
> I guess it is, but how and what are the pros and cons ?
> Should one consider this safe for a production environment ?


The easiest way to achieve this is to have 1 version installed as a module
and the other installed as cgi.

Did a quick search on google and it came up with
http://www.hurring.com/scott/howto/php4_and_php5/ but there are plenty of
other places to find how-tos.


  Réponse avec citation
Vieux 09/07/2007, 20h52   #3
NC
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PHP4 and PHP5 together on 1 LAMP

On Jul 5, 1:17 am, Pugi! <pugin...@gmail.com> wrote:
>
> Is it possible to run PHP4 and PHP5 simultaneously
> on 1 webserver (LAMP) ?


Yes. GoDaddy does it on its Linux hosting service. Both interpreters
are configured as FastCGI executables. Which interpreter processes
*.php files is controlled by an AddHandler directive in a .htaccess
file, so PHP4 vs. PHP5 choice can be made on a per-directory basis if
necessary. The default is set in httpd.conf.

> I guess it is, but how and what are the pros and cons ?


Pros and cons FOR WHOM? For the server administrator, there are no
pros, only cons (each interpreter must be installed and configured;
two independent sets of extensions must be maintained; memory
requirements are somewhat higher as well). For hosting customers,
there are no cons (except slightly higher probability of server
overload), only pros (they can use applications that require both PHP4
and PHP5 on the same machine).

> Should one consider this safe for a production environment ?


If each installation in itself is secure, there is no reason to think
running both of them simultaneously would compromise security...

Cheers,
NC

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 09h12.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07459 seconds with 11 queries