Installing two versions of PHP-FMP?

Gilles Ganault gilles.ganault at
Tue Oct 4 22:08:34 UTC 2022


I only have shallow experience with nginx.

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 

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 
this document 

apt-get install php5.6 php5.6-fpm php7.4 php7.4-fpm

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?

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list