PhpMyAdmin 在 macOS Ventura 上无法识别 php 版本 8.2.4

问题描述 投票:0回答:1

我使用自制软件安装了 phpmyadmin。我遵循了自制软件网站上列出的所有说明。当我打开 localhost://phpmyadmin 时,出现以下错误

PHP 7.2.5+ is required.

Currently installed version is: ' . PHP_VERSION . '
'); } // phpcs:disable PSR1.Files.SideEffects define('PHPMYADMIN', true); // phpcs:enable require_once ROOT_PATH . 'libraries/constants.php'; /** * Activate autoloader */ if (! @is_readable(AUTOLOAD_FILE)) { die( '

File ' . AUTOLOAD_FILE . ' missing or not readable.
' . '

Most likely you did not run Composer to ' . '' . 'install library files.
> require AUTOLOAD_FILE; global $route, $containerBuilder, $request; Common::run(); $dispatcher = Routing::getDispatcher(); Routing::callControllerForRoute($request, $route, $dispatcher, $containerBuilder);

我也试过从 phpmyadmin 网站下载文件,但还是不行。

php mysql macos apache phpmyadmin
1个回答
0
投票

发生这种情况,因为您的 php 版本与 phpmyadmin 的最低要求的 php 版本不兼容。

要解决这个问题,您可以做两件事:

  1. 将您的 php 版本升级到 7.2.5 之后的版本。
  2. 卸载您的 phpmyadmin 并安装它的旧版本。
© www.soinside.com 2019 - 2024. All rights reserved.