News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Arnold Daniels' Blog:
Wrong PHP prediction you don't need to patch PHP to run multiple versions
September 10, 2007 @ 16:55:00

In a new post today, Arnold Daniels has posted about (and linked to) a few methods for running PHP4 and PHP5 on the same server at the same time - running them as CGIs.

You simply can't have PHP4 and PHP5 both run as Apache2 module in the same process, because they use a lot of the same internal symbols (variables, function names, etc). If you would change that, nobody would be able to write any extensions which run both on PHP4 and PHP5. However you can run multiple PHP versions as CGI modules and there is no patch required for that.

He points out an article from Giunta Gaetanos that handles it similarly, but requires the filename to match a certain pattern to determine which to use. He suggests a slightly different alternative, namely using different IPs for PHP4 vs PHP5 and use DNS to route the domains to the right locations.

1 comment voice your opinion now!
php4 php5 patch multiple version ip dns php4 php5 patch multiple version ip dns


blog comments powered by Disqus

Similar Posts

Kian Hui Teo\'s Blog: Switching between PHP 5.1.x and Zend Core for Oracle

Dotvoid.com: PHP 5.2 ajaxified

DevShed: Using Code Igniter to Build an IP-to-Country Mapping Application

Johannes Schluter's Blog: A hidden gem in PHP 5.3: fileinfo

Zend Developer Zone: Zend Framework 1.7.0 is now available


Community Events





Don't see your event here?
Let us know!


threedevsandamaybe release configure code interview api podcast framework community laravel wordpress library introduction language series project bugfix developer list application

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework