How to Have Multiple Versions of PHP on Ubuntu
Too Long; Didn't Read
How to use a specific PHP version as per application? How to switch the PHP version in the Nginx’s server block? How easily you can change the PHP CLI and Web SAPI version. For Web application, once the required PHP version is set, they will work independently on specific PHP versions. For example, Magento 2 runs on Nginx with PHP 7.2, you can simply change the value of PHP version to a specific version of the application. You can find the list of PHP executables with the following command:://://://www.magepsycho.com/php-on-ubuntu-1604/