diff --git a/Civi/Install/Requirements.php b/Civi/Install/Requirements.php index 586a0c75d2de..d5f3d648ebf2 100644 --- a/Civi/Install/Requirements.php +++ b/Civi/Install/Requirements.php @@ -28,12 +28,15 @@ class Requirements { */ protected $system_checks = [ 'checkMemory', - 'checkServerVariables', 'checkMysqlConnectExists', 'checkJsonEncodeExists', 'checkMultibyteExists', ]; + protected $system_checks_web = [ + 'checkServerVariables', + ]; + protected $database_checks = [ 'checkMysqlConnection', 'checkMysqlVersion', @@ -83,6 +86,12 @@ public function checkSystem(array $file_paths) { $errors[] = $this->$check(); } + if (PHP_SAPI !== 'cli') { + foreach ($this->system_checks_web as $check) { + $errors[] = $this->$check(); + } + } + return $errors; }