## Installing PHP 7.3 on Ubuntu 16.04 and 18.04
Install the PPA:
add-apt-repository ppa:ondrej/php && apt-get update Install the PHP packages
apt-get install php7.3 php7.3-mysql php7.3-cgi php7.3-cliLastly, see the information on configuring the second PHP version below.
## Configuring the second PHP Version in Virtualmin
Once you have completed the installation of a second PHP version on your server, you can verify that Virtualmin sees it by logging into Virtualmin, and clicking System Settings -> Re-Check Config. You should see something like this:
The following PHP versions are available : 5.3.3 (/usr/bin/php-cgi), 5.6.25 (/opt/rh/rh-php56/root/usr/bin/php-cgi), 7.0.10 (/opt/rh/rh-php70/root/usr/bin/php-cgi)You can configure which one is the default PHP version used on new Virtual Servers. The default is to use the newest available. You can change that default in System Settings -> Server Templates -> Default -> PHP Options, and on that screen you can set the default PHP version to use in the field Default PHP version.
## Configuring Individual Virtual Servers
You can configure the PHP version being used for a specific Virtual Server by selecting Server Configuration -> PHP Versions.
The first line there specifies what PHP version will be used by default.
If you wish, you can specify a different PHP version to be used for a specific directory.
Полезные ссылки:
https://www.rosehosting.com/blog/how-to-install-php-7-3-on-ubuntu-16-04/
https://virtualmin.com/node/59956
https://www.serverpronto.com/accounts/knowledgebase.php?action=displayarticle&id=5&language=russian