<div dir="ltr">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.<div><br></div><div>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 <a href="http://php.net/supported-versions.php">http://php.net/supported-versions.php</a>!</div><div><br></div><div>Nicholas</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 9, 2017 at 1:00 PM, Richard S. Crawford <span dir="ltr"><<a href="mailto:richard@underpope.com" target="_blank">richard@underpope.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small">Hi all, </div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small"><br></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small">​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:</div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small"><br></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small"><a href="http://pb.mydomain.edu" target="_blank">http://pb.mydomain.edu</a> <- runs PHP 5.3</div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small"><a href="http://moodle.mydomain.edu" target="_blank">http://moodle.mydomain.edu</a> <- runs PHP 7</div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small"><a href="http://i.mydomain.edu" target="_blank">http://i.mydomain.edu</a> <- runs PHP 5.6</div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small"><br></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small">All on the same server, where the moodle domain is the default.</div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small"><br></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small">What's the best way to approach this? I've looked at PHPBrew (<a href="https://github.com/phpbrew/phpbrew" target="_blank">https://github.com/phpbrew/<wbr>phpbrew</a>) and PHPFarm (<a href="https://github.com/fpoirotte/phpfarm" target="_blank">https://github.com/fpoirotte/<wbr>phpfarm</a>), but I'm not sure either one does what I need it to.</div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small"><br></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small">For extra fun, I'm building this server on an Amazon EC2 server running the most recent version of Amazon Linux AMI.​</div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small"><br></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small">Any ideas or assistance would be greatly appreciated.</div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small"><br></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small">TIA</div><span class="HOEnZb"><font color="#888888"><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small"><br></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:small">Richard</div></font></span></div>
<br>______________________________<wbr>_________________<br>
vox-tech mailing list<br>
<a href="mailto:vox-tech@lists.lugod.org">vox-tech@lists.lugod.org</a><br>
<a href="http://lists.lugod.org/mailman/listinfo/vox-tech" rel="noreferrer" target="_blank">http://lists.lugod.org/<wbr>mailman/listinfo/vox-tech</a><br>
<br></blockquote></div><br></div>