From richard at underpope.com Thu Feb 9 10:00:06 2017 From: richard at underpope.com (Richard S. Crawford) Date: Thu, 9 Feb 2017 10:00:06 -0800 Subject: [vox-tech] Multiple versions of PHP on one server Message-ID: 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: http://pb.mydomain.edu <- runs PHP 5.3 http://moodle.mydomain.edu <- runs PHP 7 http://i.mydomain.edu <- 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 ( https://github.com/phpbrew/phpbrew) and PHPFarm ( https://github.com/fpoirotte/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. TIA Richard -------------- next part -------------- An HTML attachment was scrubbed... URL: From rod at sunsetsystems.com Thu Feb 9 10:48:07 2017 From: rod at sunsetsystems.com (Rod Roark) Date: Thu, 9 Feb 2017 10:48:07 -0800 Subject: [vox-tech] Multiple versions of PHP on one server In-Reply-To: References: Message-ID: That gets sticky because each web server will want its own port to listen for connections. What I would do is set up a different container or VM for each hostname. With Digital Ocean for example that can be as little as $5/month each (Go to https://m.do.co/c/936b5848a629 for a $10 discount). That said, I have installed both Apache with PHP5.6 and Nginx with PHP7 on the same server. One on port 80 and 443, the other on 81. Rod On 02/09/2017 10:00 AM, Richard S. Crawford wrote: > 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: > > http://pb.mydomain.edu <- runs PHP 5.3 > http://moodle.mydomain.edu <- runs PHP 7 > http://i.mydomain.edu <- 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 > (https://github.com/phpbrew/phpbrew) and PHPFarm > (https://github.com/fpoirotte/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. > > TIA > > Richard > > > _______________________________________________ > vox-tech mailing list > vox-tech at lists.lugod.org > http://lists.lugod.org/mailman/listinfo/vox-tech From spencer at pageweavers.com Thu Feb 9 12:15:33 2017 From: spencer at pageweavers.com (David Spencer) Date: Thu, 9 Feb 2017 12:15:33 -0800 Subject: [vox-tech] Multiple versions of PHP on one server In-Reply-To: References: Message-ID: I have a CentOS server with Plesk installed that easily let’s me do that kind of stuff. Of course I”ll have to charge some kind of minimal fee for hosting. Keep that in your back pocket if you can’t get it done otherwise. — Dave Spencer, PageWeavers / SacAutos > On Feb 9, 2017, at 10:00 AM, Richard S. Crawford wrote: > > 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: > > http://pb.mydomain.edu <- runs PHP 5.3 > http://moodle.mydomain.edu <- runs PHP 7 > http://i.mydomain.edu <- 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 (https://github.com/phpbrew/phpbrew ) and PHPFarm (https://github.com/fpoirotte/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. > > TIA > > Richard > _______________________________________________ > vox-tech mailing list > vox-tech at lists.lugod.org > http://lists.lugod.org/mailman/listinfo/vox-tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From ntw at davismakerspace.org Thu Feb 9 13:24:38 2017 From: ntw at davismakerspace.org (Nicholas Weigand) Date: Thu, 9 Feb 2017 16:24:38 -0500 Subject: [vox-tech] Multiple versions of PHP on one server In-Reply-To: References: Message-ID: 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 http://php.net/supported-versions.php! Nicholas On Thu, Feb 9, 2017 at 1:00 PM, Richard S. Crawford wrote: > 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: > > http://pb.mydomain.edu <- runs PHP 5.3 > http://moodle.mydomain.edu <- runs PHP 7 > http://i.mydomain.edu <- 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 ( > https://github.com/phpbrew/phpbrew) and PHPFarm ( > https://github.com/fpoirotte/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. > > TIA > > Richard > > _______________________________________________ > vox-tech mailing list > vox-tech at lists.lugod.org > http://lists.lugod.org/mailman/listinfo/vox-tech > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard at underpope.com Thu Feb 9 13:34:43 2017 From: richard at underpope.com (Richard S. Crawford) Date: Thu, 9 Feb 2017 13:34:43 -0800 Subject: [vox-tech] Multiple versions of PHP on one server In-Reply-To: References: Message-ID: That's something that had occurred to me as well, but I have absolutely no idea how to go about implementing that. Fortunately, this situation won't be lasting more than a year or so, if things go as planned. Of course, as in all things, that's a pretty big If. On Thu, Feb 9, 2017 at 1:24 PM, Nicholas Weigand wrote: > 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 http://php.net/supported-versions.php! > > Nicholas > > On Thu, Feb 9, 2017 at 1:00 PM, Richard S. Crawford > wrote: > >> 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: >> >> http://pb.mydomain.edu <- runs PHP 5.3 >> http://moodle.mydomain.edu <- runs PHP 7 >> http://i.mydomain.edu <- 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 ( >> https://github.com/phpbrew/phpbrew) and PHPFarm ( >> https://github.com/fpoirotte/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. >> >> TIA >> >> Richard >> >> _______________________________________________ >> vox-tech mailing list >> vox-tech at lists.lugod.org >> http://lists.lugod.org/mailman/listinfo/vox-tech >> >> > > _______________________________________________ > vox-tech mailing list > vox-tech at lists.lugod.org > http://lists.lugod.org/mailman/listinfo/vox-tech > > -------------- next part -------------- An HTML attachment was scrubbed... URL: