在 Ubuntu 22.04 上,安装apache、php和mysql后phpmyadmin,链接 http://localhost/phpmyadmin/ 返回空白页面。唯一输出的代码是:
<?php
declare(strict_types=1);
use PhpMyAdmin\Routing;
if (! defined('ROOT_PATH')) {
// phpcs:disable PSR1.Files.SideEffects
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
// phpcs:enable
}
global $route, $containerBuilder;
require_once ROOT_PATH . 'libraries/common.inc.php';
$dispatcher = Routing::getDispatcher();
Routing::callControllerForRoute($route, $dispatcher, $containerBuilder);
Run Code Online (Sandbox Code Playgroud)
感谢任何可以帮助我跑步的人phpmyadmin。