php 7.2 not found in virtualmin re-check configuration

Hello,

I installed Ubuntu 16.04.4 LTS, latest virtualmin GPL

I installed php 7.2 from
sudo add-apt-repository ppa:ondrej/php

i did
update-alternatives --set php /usr/bin/php7.2

a2enconf php7.2

and another try using
a2enconf php7.2-fpm

when i go to virtualmin > re-check configuration to detect my php versions i get only the following

The following PHP versions are available : 7.0.28 (/usr/bin/php-cgi7.0), 7.0 (mod_php)
PHP-FPM support is available on this system.

php 7.2 does not appear

Please advise

Using apache fcgid php 7.2 is exposed on my ubuntu instance.

The following PHP versions are available : 7.0.29 (/usr/bin/php-cgi7.0), 7.1.16 (/usr/bin/php7.1), 7.2.4 (/usr/bin/php-cgi), 7.0 (mod_php)

Hello, I have a similar problem. On Centos 7.7, versions of PHP 5.4.16 and 7.1.33 are already installed. I am trying to add 7.4. All packages are installed, php is accessible from the command line (/bin/php74), but the latest version is not found at “Re-Check configuration”. update-alternatives was launched, replacing CGI mode with fcgid given nothing. What am I missing?

Resolved: added “/bin/php74-cgi” to “System Settings/Virtualmin configuration/PHP Options/Additional locations for PHP commands”

1 Like