<html style="direction: ltr;">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="UTF-8" bgcolor="#FFFFFF"
text="#000000">
Thanks for the response.<br>
<br>
<div class="moz-cite-prefix">On 08/26/2014 01:43 AM, E.S. Rosenberg
wrote:<br>
</div>
<blockquote
cite="mid:CAHTx_BPQn5m=SbN9YKJAAuvjXZWXq=RSbdN9dgr2NShsgeptcA@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra">
<div class="gmail_quote">2014-08-25 23:24 GMT+03:00 David Suna
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:david@davidsconsultants.com"
target="_blank">david@davidsconsultants.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="direction:ltr" bgcolor="#FFFFFF"
text="#000000"> I have a Debian Wheezy machine two
virtual hosts configured on a single machine. One
requires PHP 5.3 and the other requires PHP 5.4+. I am
trying to set up the machine to allow both to run. <br>
<br>
So far I have added php-fpm (fastcgi) as per
<a moz-do-not-send="true"
href="https://www.linode.com/docs/websites/apache/running-fastcgi-php-fpm-on-debian-7-with-apache"
target="_blank">https://www.linode.com/docs/websites/apache/running-fastcgi-php-fpm-on-debian-7-with-apache</a>.<br>
<br>
This site (<a moz-do-not-send="true"
href="http://www.howtoforge.com/how-to-use-multiple-php-versions-php-fpm-and-fastcgi-with-ispconfig-3-debian-wheezy"
target="_blank">http://www.howtoforge.com/how-to-use-multiple-php-versions-php-fpm-and-fastcgi-with-ispconfig-3-debian-wheezy</a>)
talks about using ISPConfig 3 for this. I have
downloaded and compiled the 5.3 version of PHP but using
ISPConfig seems to be a big headache. <br>
<br>
From <a moz-do-not-send="true"
href="http://thejibe.com/blog/14/02/phpfarm"
target="_blank">http://thejibe.com/blog/14/02/phpfarm</a>
it would seem like I should be able to have the
configuration done within the virtualhost directives but
that page seems to be out of date and I didn't follow
all of the changes being suggested.<br>
</div>
</blockquote>
<div>The page is barely a half year old and a quick scan
seems to be that it is in the right direction, it is using
what you yourself were also considering: fastcgi.<br>
</div>
</div>
</div>
</div>
</blockquote>
The page seems out of date as I checked the compile time options it
showed for PHP and many of the options are for older versions of PHP
that are no longer relevant as of PHP 5. Based on what I have read,
including on this page, fastcgi is the way to go. I have compiled
the other version of PHP and added fastcgi. My problem is that I
don't have the last step of how to configure fastcgi to allow
different versions of PHP to be used by different virtual hosts.<br>
<blockquote
cite="mid:CAHTx_BPQn5m=SbN9YKJAAuvjXZWXq=RSbdN9dgr2NShsgeptcA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>
</div>
<div><br>
A very far fetched and convoluted way would be to run
nginx with fastcgi and specific php versions on different
ports and modrewrite certain paths/urls to it....<br>
</div>
</div>
</div>
</div>
</blockquote>
I am trying to keep to Apache as the web server.<br>
<pre class="moz-signature" cols="72">--
David Suna
<a class="moz-txt-link-abbreviated" href="mailto:david@davidsconsultants.com">david@davidsconsultants.com</a></pre>
</body>
</html>