phpMydmin script installer broken when php7.0 is installed

The problem should be solved with 5.0.1 but this is not the case. When PHP 7 is the only version installed, it is not possible to install phpMyAdmin.

This script cannot be installed, as it requires PHP version 5.
This script cannot be installed, as this virtual server does not meet its requirements : Could not work out exact PHP version


If you go to Server Configuration -> Website Options and open the PHP versions section, which versions are shown?

PHP versions installed No versions found!

Ah .. that's a problem. Where is the PHP 7 executable located on your system?

From Checking Configuration:
The following PHP versions are available : 7.0.2 (/bin/php70-cgi)

[root@ns5 ~]# /bin/php70-cgi -v
PHP 7.0.2 (cgi-fcgi) (built: Jan 6 2016 15:25:32)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies

Have you upgraded to 5.02 yet? It should solve this for sure.

Yes I have upgraded to 5.02. No change.

script_form.cgi patched but no change.

# Check PHP version
$ok = 1;
$phpvfunc = $script->{'php_vers_func'};
if (defined(&$phpvfunc)) {
@vers = &$phpvfunc($d, $ver);
@gotvers = grep { local $v = $_; local $_;
&check_php_version($d, $v) }
&expand_php_versions($d, \@vers);
@gotvers = sort { &get_php_version($b, $d) <=>
&get_php_version($a, $d) } @gotvers;
if (!@gotvers) {
print &text('scripts_ephpvers', join(" or ", @vers)),"<p>\n";
$ok = 0;

Hiya, don't know if I'm in the right place, apologies if I am not.

I have this problem too, has it been patched yet?

If I patch the file, I am getting this error

This script cannot be installed, as this virtual server does not meet its requirements : Could not work out exact PHP version # Check PHP version                                                    
$ok = 1;                                                               
$phpvfunc = $script->{'php_vers_func'};                                
if (defined(&$phpvfunc)) {                                             
        @vers = &$phpvfunc($d, $ver);                                  
        @gotvers = grep { local $v = $_; local $_;                     
&check_php_version($d, $v) }                                           
&expand_php_versions($d, \@vers);                                      
        @gotvers = sort { &get_php_version($b, $d) <=>                 
                          &get_php_version($a, $d) }                   
&get_php_version($a, $d) } @gotvers;                                   
        if (!@gotvers) {                                               
                print &text('scripts_ephpvers', join(" or ", @vers)),"<$
                $ok = 0;                                               
#       }                                                              

So I am kinda stuck :/

Hey guys -- what is the output of this command on your server:

which php70-cgi

Also, if you go into System Settings -> Re-Check Config, can you paste in any messages it provides about PHP?

Yay today's update fixed it.

root@bloris:~# which php70-cgi                                         
Virtualmin recommended minimum of 256 MB.
The system does not appear to have any DNS servers configured. However, the default behaviour of using a local DNS server should still work.

Mail server Postfix is installed and configured.

Postfix is configured to support per-domain outgoing IP addresses.

Apache is installed.

The following PHP versions are available : 7.0.4 (/usr/bin/php-cgi7.0)

Webalizer is installed.

Apache is configured to host SSL websites.

MySQL is installed and running.

ProFTPD is installed.

Logrotate is installed.

SpamAssassin and Procmail are installed and configured for use.

ClamAV is installed and assumed to be running.

The System and Server Status module is installed and checking on schedule.

Plugin AWstats reporting is installed OK.

Plugin Protected web directories is installed OK.

Using network interface enp0s7 for virtual IPs.

Default IPv4 address for virtual servers is

Default IP address is set to, which matches the detected external address.

Both user and group quotas are enabled for home and email directories.

All commands needed to create and restore backups are installed.

Resource limits are supported and configured correctly.

The selected package management and update systems are installed OK.

Excellent, that's good to hear, thanks for letting us know!