diff --git a/admin/cli/install.php b/admin/cli/install.php
index 9f3c0df4359f..0b6c5cac392b 100644
--- a/admin/cli/install.php
+++ b/admin/cli/install.php
@@ -147,10 +147,10 @@
define('IGNORE_COMPONENT_CACHE', true);
// Check that PHP is of a sufficient version
-if (version_compare(phpversion(), "5.4.4") < 0) {
+if (version_compare(phpversion(), "5.6.5") < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it after installib
- fwrite(STDERR, "Moodle 2.7 or later requires at least PHP 5.4.4 (currently using version $phpversion).\n");
+ fwrite(STDERR, "Moodle 3.2 or later requires at least PHP 5.6.5 (currently using version $phpversion).\n");
fwrite(STDERR, "Please upgrade your server software or install older Moodle version.\n");
exit(1);
}
diff --git a/admin/cli/install_database.php b/admin/cli/install_database.php
index b66805e46462..f41263ed9e5e 100644
--- a/admin/cli/install_database.php
+++ b/admin/cli/install_database.php
@@ -63,10 +63,10 @@
";
// Check that PHP is of a sufficient version
-if (version_compare(phpversion(), "5.4.4") < 0) {
+if (version_compare(phpversion(), "5.6.5") < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it after installib
- fwrite(STDERR, "Moodle 2.7 or later requires at least PHP 5.4.4 (currently using version $phpversion).\n");
+ fwrite(STDERR, "Moodle 3.2 or later requires at least PHP 5.6.5 (currently using version $phpversion).\n");
fwrite(STDERR, "Please upgrade your server software or install older Moodle version.\n");
exit(1);
}
diff --git a/admin/index.php b/admin/index.php
index 1000f939193a..382c2522e532 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -30,10 +30,10 @@
}
// Check that PHP is of a sufficient version as soon as possible
-if (version_compare(phpversion(), '5.4.4') < 0) {
+if (version_compare(phpversion(), '5.6.5') < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it to later place
- echo "Moodle 2.7 or later requires at least PHP 5.4.4 (currently using version $phpversion).
";
+ echo "Moodle 3.2 or later requires at least PHP 5.6.5 (currently using version $phpversion).
";
echo "Please upgrade your server software or install older Moodle version.";
die();
}
diff --git a/install.php b/install.php
index 6a7209dc7492..4bdcf4113b4c 100644
--- a/install.php
+++ b/install.php
@@ -62,10 +62,10 @@
@ini_set('display_errors', '1');
// Check that PHP is of a sufficient version.
-if (version_compare(phpversion(), '5.4.4') < 0) {
+if (version_compare(phpversion(), '5.6.5') < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN not move it after installib
- echo "Moodle 2.7 or later requires at least PHP 5.4.4 (currently using version $phpversion).
";
+ echo "Moodle 3.2 or later requires at least PHP 5.6.5 (currently using version $phpversion).
";
echo "Please upgrade your server software or install older Moodle version.";
die;
}
diff --git a/lib/setup.php b/lib/setup.php
index b9f51c1e2870..2972b6b9d5cd 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -337,10 +337,10 @@
if (CLI_SCRIPT) {
// sometimes people use different PHP binary for web and CLI, make 100% sure they have the supported PHP version
- if (version_compare(phpversion(), '5.4.4') < 0) {
+ if (version_compare(phpversion(), '5.6.5') < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it to later place
- echo "Moodle 2.7 or later requires at least PHP 5.4.4 (currently using version $phpversion).\n";
+ echo "Moodle 3.2 or later requires at least PHP 5.6.5 (currently using version $phpversion).\n";
echo "Some servers may have multiple PHP versions installed, are you using the correct executable?\n";
exit(1);
}