Submitted by absolute web on Tue, 04/19/2016 - 16:49
Hi,
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
Status:
Active
Comments
Submitted by JamieCameron on Tue, 04/19/2016 - 21:27 Comment #1
If you go to Server Configuration -> Website Options and open the PHP versions section, which versions are shown?
Submitted by absolute web on Wed, 04/20/2016 - 14:14 Comment #2
PHP versions installed No versions found!
Submitted by JamieCameron on Thu, 04/21/2016 - 00:44 Comment #3
Ah .. that's a problem. Where is the PHP 7 executable located on your system?
Submitted by absolute web on Tue, 04/26/2016 - 03:41 Comment #4
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
Submitted by JamieCameron on Tue, 04/26/2016 - 20:04 Comment #5
Have you upgraded to 5.02 yet? It should solve this for sure.
Submitted by absolute web on Wed, 04/27/2016 - 03:05 Comment #6
Yes I have upgraded to 5.02. No change.
Submitted by andreychek on Wed, 04/27/2016 - 08:13 Comment #7
I think we figured out what the issue here is. We'll be pushing out a new release very likely in the next few days (or sooner!) to resolve that... in the meantime there's a patch for it listed here:
https://www.virtualmin.com/comment/755498#comment-755498
Submitted by absolute web on Fri, 05/20/2016 - 04:01 Comment #8
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;
}
}
Submitted by Bloris on Fri, 05/20/2016 - 14:19 Comment #9
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 :/
Submitted by andreychek on Fri, 05/20/2016 - 15:36 Comment #10
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?
Submitted by Bloris on Sat, 05/21/2016 - 10:53 Comment #11
Yay today's update fixed it.
root@bloris:~# which php70-cgi
root@bloris:~#
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 80.229.14.42.
Default IP address is set to 80.229.14.42, 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.
Submitted by andreychek on Sat, 05/21/2016 - 13:05 Comment #12
Excellent, that's good to hear, thanks for letting us know!