<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>I only have shallow experience with nginx.<br>
</p>
<p>To migrate an old php5-based application to the latest release
which expects php7, I'd like to install both versions of PHP-FPM
in one nginx server.<br>
</p>
<p>Although I read elsewhere it's a mistake to install the php
package instead of php-fpm because the former also installs
Apacheā¦ this is what <a moz-do-not-send="true"
href="https://menchomneau.medium.com/how-to-install-multi-php-server-on-ubuntu-20-04-and-nginx-ae63bc87c74b">this
document</a> does:</p>
<p>=============<br>
apt-get install php5.6 php5.6-fpm php7.4 php7.4-fpm<br>
=============</p>
<p>So, what's the recommended way to set things up so that nginx can
support both interpreters and manage two versions of a web app in
their respective directory?</p>
<p>Thank you.<br>
</p>
</body>
</html>