Notes some problems on run more than one PHP version on Ubuntu. There are still some questions about how PHP, PHP CLI, Web Server Apache2, Nginx, PHP-FPM (FastCGI), composer ... Switch PHP version with Apache2 https://askubuntu.com/questions/761713/how-can-i-downgrade-from-php-7-to-php-5-6-on-ubuntu-16-04 https://tecadmin.net/switch-between-multiple-php-version-on-ubuntu/ The basic idea for run 2 (or more ?) PHP version with Nginx and PHP-FPM is each FPM run on different port (9000, 9001) if use TCP/IP mode. In case use eg. php5-fpm.sock then you can point to different php-version.sock Keyword "Pool", Each pool for each PHP, FPM version seem have to different. If you use default pool (www) then I see that php-fpm only run for one version ie. php7.0-fpm while php5-fpm CGI not run. Use PHP7 with apache2 and PHP5 with Nginx. Apache2 can be switch PHP version by a2enmod, dismod to use PHP module. PHP with Apache is module. PHP in CLI is different story. This wil...
Some tribes of the programmer clan.