News Feed
Sections




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

Andreas Gohr:
Docker PHP Farm
February 03, 2014 @ 10:05:19

In his latest post Andreas Gohr shares a platform he's developed using docker to create a multi-PHP version instance that can run locally with just a few commands.

Yesterday I tried to fix a bug a user had reported in one of my DokuWiki plugins. Apparently it only occurred on PHP 5.2. Well, the last PHP 5.2 version was released in 2011 and no modern distribution has it anymore. So how do I test this easily? After a few failed attempts with finding a virtual machine image that would give me the needed PHP version I decided to come up with my own solution. And because I was curious - I decided to build it on docker.

He's already done the hard work for you and created the "phpfarm" project that's easy to pull in and use. He includes the two commands to get it downloaded and up and working and running PHP versions 5.2 through 5.5 on ports 8052 to 8055. If you're interested in seeing his Dockerfile, check it out on Github.

0 comments voice your opinion now!
docker phpfarm version multiple container

Link: http://www.splitbrain.org/blog/2014-02/02-docker_phpfarm

blog comments powered by Disqus

Similar Posts

PHPClasses.org: Lately in PHP, Episode 31 - The Urge to Kill Older PHP Versions

Mike Wallner\'s Blog: Some cool new features of pecl/http

Zend Developer Zone: Zend Core 2.0 for i5/OS - BETA Released

Changeblog: How to install PHP 5.3 and 5.2 together on Ubuntu 12.04

Mike Wallner\'s Blog: Some cool new features of pecl/http


Community Events





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


community conference library laravel list voicesoftheelephpant framework language series version symfony podcast composer introduction artisanfiles opinion tool interview security release

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