localhost/phpmyadmin显示文本代替登录页面.我使用apache2 web服务器进行访问PHPMyAdmin.
该网页显示如下代码,还有更多: -
addJSON( 'list', PMA_RecentFavoriteTable::getInstance('recent')->getHtmlList() ); exit; } if ($GLOBALS['PMA_Config']->isGitRevision()) { if (isset($_REQUEST['git_revision']) && $GLOBALS['is_ajax_request'] == true) { PMA_printGitRevision(); exit; } echo '
'; } // Handles some variables that may have been sent by the calling script $GLOBALS['db'] = ''; $GLOBALS['table'] = ''; $show_query = '1'; // Any message to display? if (! empty($message)) { echo PMA_Util::getMessage($message); unset($message); } $common_url_query = PMA_URL_getCommon(); $mysql_cur_user_and_host = ''; // when $server > 0, a server has been chosen so we can display // all MySQL-related information if ($server > 0) { include 'libraries/server_common.inc.php'; include 'libraries/StorageEngine.class.php'; // Use the verbose name of the server instead of the hostname // if a value is set $server_info = ''; if (! empty($cfg['Server']['verbose'])) { $server_info .= htmlspecialchars($cfg['Server']['verbose']); if ($GLOBALS['cfg']['ShowServerInfo']) { $server_info .= ' ('; } } if ($GLOBALS['cfg']['ShowServerInfo'] || empty($cfg['Server']['verbose'])) { $server_info .= $GLOBALS['dbi']->getHostInfo(); } if (! empty($cfg['Server']['verbose']) && $GLOBALS['cfg']['ShowServerInfo']) { $server_info .= ')'; } $mysql_cur_user_and_host = $GLOBALS['dbi']->fetchValue('SELECT USER();'); // should we add the port info here? $short_server_info = (!empty($GLOBALS['cfg']['Server']['verbose']) ? $GLOBALS['cfg']['Server']['verbose'] : $GLOBALS['cfg']['Server']['host']); } echo '
' . "\n"; // Anchor for favorite tables synchronization. echo PMA_RecentFavoriteTable::getInstance('favorite')->getHtmlSyncFavoriteTables(); echo '
'; if ($server > 0 || count($cfg['Servers']) > 1 ) { if ($cfg['DBG']['demo']) { echo '
'; echo '
Run Code Online (Sandbox Code Playgroud)
更新 我能够通过在浏览器上尝试这个来解决这个问题: - http:// localhost/phpmyadmin /?
Zah*_*bar 13
你必须安装apache2 php包.
sudo apt install php libapache2-mod-php
Run Code Online (Sandbox Code Playgroud)
安装 PHP 7.3、7.2 和 5.6,然后清除 PHP 5.6 和 PHP 7.3 后,同样的事情发生在我身上。
我执行了以下步骤:
a2enmod php7.3systemctl restart apache2然后一切都很顺利。
这可能是由于配置文件中的错误更改导致字符串(使用 ')或代码块(使用 ?>)终止。如果您没有手动执行此操作,那么您的网站可能会被黑客入侵。检查您的配置文件并尝试重新安装 phpMyAdmin 并将配置文件设置为只读。
编辑:您能否包含 phpMyAdmin 的版本和/或其安装包的链接。
| 归档时间: |
|
| 查看次数: |
12706 次 |
| 最近记录: |