This seems like a perfect use case for containers. Use docker or rkt to run
each site, and use nginx in front as a reverse proxy pointing to the local
listening ports of the containers. Using nginx (or apache or whatever) as a
reverse proxy will avoid the port collision problem.

I'd definitely look at containing these sites (either in containers or vms)
just for security reasons. PHP 5.3 hasn't been getting security fixes since
2014 according to!


On Thu, Feb 9, 2017 at 1:00 PM, Richard S. Crawford <>

> Hi all,
> ​I have a situation where I need to set up a webserver that runs a
> different version of PHP on each different subdomain. For example:
> <- runs PHP 5.3
> <- runs PHP 7
> <- runs PHP 5.6
> All on the same server, where the moodle domain is the default.
> What's the best way to approach this? I've looked at PHPBrew (
> and PHPFarm (
>, but I'm not sure either one does
> what I need it to.
> For extra fun, I'm building this server on an Amazon EC2 server running
> the most recent version of Amazon Linux AMI.​
> Any ideas or assistance would be greatly appreciated.
> Richard
> _______________________________________________
> vox-tech mailing list
vox-tech mailing list

Reply via email to