You are here: Re: PHP4 and PHP5 together on 1 LAMP « All PHP « IT news, forums, messages
Re: PHP4 and PHP5 together on 1 LAMP

Posted by NC on 07/09/07 19:52

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

 

Navigation:

[Reply to this 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

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