phpmyadmin 出现奇怪的错误,安装成功但仍然无法运行

2023-12-09

我一整天都在努力安装 phpmyadmin。我已经尝试重新安装很多次了,但还是不行。打开 localhost/phpmyadmin 时,我收到一些文本,而不是实际的 phpmyadmin UI。

enter image description here

正文是——

addJSON( 'options', PMA_RecentTable::getInstance()->getHtmlSelectOption() ); 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_generate_common_url('', ''); // 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 .= PMA_DBI_get_host_info(); } if (! empty($cfg['Server']['verbose']) && $GLOBALS['cfg']['ShowServerInfo']) { $server_info .= ')'; } $mysql_cur_user_and_host = PMA_DBI_fetch_value('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"; echo '
'; if ($server > 0 || count($cfg['Servers']) > 1 ) { echo '
'; echo '
' . __('General Settings') . '
'; echo '

    '; /** * Displays the MySQL servers choice form */ if ($cfg['ServerDefault'] == 0 || (! $cfg['NavigationDisplayServers'] && (count($cfg['Servers']) > 1 || ($server == 0 && count($cfg['Servers']) == 1) ) ) ) { echo '
    '; include_once 'libraries/select_server.lib.php'; echo PMA_Util::getImage('s_host.png') . " " . PMA_selectServer(true, true); echo '
    '; } /** * Displays the mysql server related links */ if ($server > 0 && ! PMA_DRIZZLE) { include_once 'libraries/check_user_privileges.lib.php'; // Logout for advanced authentication if ($cfg['Server']['auth_type'] != 'config') { if ($cfg['ShowChgPassword']) { $conditional_class = 'ajax'; PMA_printListItem( PMA_Util::getImage('s_passwd.png') . " " . __('Change password'), 'li_change_password', 'user_password.php?' . $common_url_query, null, null, 'change_password_anchor', "no_bullets", $conditional_class ); } } // end if echo '
    '; echo '
    ' . "\n" . PMA_generate_common_hidden_inputs(null, null, 4, 'collation_connection') . ' ' . "\n" . ' '. PMA_Util::getImage('s_asci.png') . " " . __('Server connection collation') . "\n" // put the doc link in the form so that it appears on the same line . PMA_Util::showMySQLDocu( 'MySQL_Database_Administration', 'Charset-connection' ) . ': ' . "\n" . ' ' . "\n" . PMA_generateCharsetDropdownBox( PMA_CSDROPDOWN_COLLATION, 'collation_connection', 'select_collation_connection', $collation_connection, true, 4, true ) . '
    ' . "\n" . '
    ' . "\n"; } // end of if ($server > 0 && !PMA_DRIZZLE) echo '

'; echo '
'; } echo '
'; echo '
' . __('Appearance Settings') . '
'; echo '

    '; // Displays language selection combo if (empty($cfg['Lang']) && count($GLOBALS['available_languages']) > 1) { echo '
    '; include_once 'libraries/display_select_lang.lib.php'; echo PMA_Util::getImage('s_lang.png') . " " . PMA_getLanguageSelectorHtml(); echo '
    '; } // ThemeManager if available if ($GLOBALS['cfg']['ThemeManager']) { echo '
    '; echo PMA_Util::getImage('s_theme.png') . " " . $_SESSION['PMA_Theme_Manager']->getHtmlSelectBox(); echo '
    '; } echo '
    '; echo PMA_Config::getFontsizeForm(); echo '
    '; echo '

'; // User preferences if ($server > 0) { echo '

    '; PMA_printListItem( PMA_Util::getImage('b_tblops.png')." " .__('More settings'), 'li_user_preferences', 'prefs_manage.php?' . $common_url_query, null, null, null, "no_bullets" ); echo '

'; } echo '
'; echo '
'; echo '
'; if ($server > 0 && $GLOBALS['cfg']['ShowServerInfo']) { echo '
'; echo '
' . __('Database server') . '
'; echo '

    ' . "\n"; PMA_printListItem( __('Server') . ': ' . $server_info, 'li_server_info' ); PMA_printListItem( __('Server type') . ': ' . PMA_Util::getServerType(), 'li_server_type' ); PMA_printListItem( __('Server version') . ': ' . PMA_MYSQL_STR_VERSION . ' - ' . PMA_MYSQL_VERSION_COMMENT, 'li_server_version' ); PMA_printListItem( __('Protocol version') . ': ' . PMA_DBI_get_proto_info(), 'li_mysql_proto' ); PMA_printListItem( __('User') . ': ' . htmlspecialchars($mysql_cur_user_and_host), 'li_user_info' ); echo '
    '; echo ' ' . __('Server charset') . ': ' . ' '; if (! PMA_DRIZZLE) { echo ' ' . $mysql_charsets_descriptions[$mysql_charset_map['utf-8']] . "\n"; } echo ' (' . $mysql_charset_map['utf-8'] . ')' . "\n" . ' ' . "\n" . '
    ' . "\n"; echo ' 

'; echo '
'; } if ($GLOBALS['cfg']['ShowServerInfo'] || $GLOBALS['cfg']['ShowPhpInfo']) { echo '
'; echo '
' . __('Web server') . '
'; echo '

    '; if ($GLOBALS['cfg']['ShowServerInfo']) { PMA_printListItem($_SERVER['SERVER_SOFTWARE'], 'li_web_server_software'); if ($server > 0) { $client_version_str = PMA_DBI_get_client_info(); if (preg_match('#\d+\.\d+\.\d+#', $client_version_str) && in_array($GLOBALS['cfg']['Server']['extension'], array('mysql', 'mysqli')) ) { $client_version_str = 'libmysql - ' . $client_version_str; } PMA_printListItem( __('Database client version') . ': ' . $client_version_str, 'li_mysql_client_version' ); $php_ext_string = __('PHP extension') . ': ' . $GLOBALS['cfg']['Server']['extension'] . ' ' . PMA_Util::showPHPDocu( 'book.' . $GLOBALS['cfg']['Server']['extension'] . '.php' ); PMA_printListItem( $php_ext_string, 'li_used_php_extension' ); } } if ($cfg['ShowPhpInfo']) { PMA_printListItem( __('Show PHP information'), 'li_phpinfo', 'phpinfo.php?' . $common_url_query, null, '_blank' ); } echo ' 

'; echo '
'; } echo '
'; echo '
phpMyAdmin
'; echo '

    '; $class = null; // We rely on CSP to allow access to http://www.phpmyadmin.net, but IE lacks // support here and does not allow request to http once using https. if ($GLOBALS['cfg']['VersionCheck'] && (! $GLOBALS['PMA_Config']->get('is_https') || PMA_USR_BROWSER_AGENT != 'IE') ) { $class = 'jsversioncheck'; } PMA_printListItem( __('Version information') . ': ' . PMA_VERSION, 'li_pma_version', null, null, null, null, $class ); PMA_printListItem( __('Documentation'), 'li_pma_docs', PMA_Util::getDocuLink('index'), null, '_blank' ); PMA_printListItem( __('Wiki'), 'li_pma_wiki', PMA_linkURL('http://wiki.phpmyadmin.net/'), null, '_blank' ); // does not work if no target specified, don't know why PMA_printListItem( __('Official Homepage'), 'li_pma_homepage', PMA_linkURL('http://www.phpMyAdmin.net/'), null, '_blank' ); PMA_printListItem( __('Contribute'), 'li_pma_contribute', PMA_linkURL('http://www.phpmyadmin.net/home_page/improve.php'), null, '_blank' ); PMA_printListItem( __('Get support'), 'li_pma_support', PMA_linkURL('http://www.phpmyadmin.net/home_page/support.php'), null, '_blank' ); PMA_printListItem( __('List of changes'), 'li_pma_changes', PMA_linkURL('changelog.php'), null, '_blank' ); ?> 

1) { trigger_error( __('You have enabled mbstring.func_overload in your PHP configuration. This option is incompatible with phpMyAdmin and might cause some data to be corrupted!'), E_USER_WARNING ); } /** * Nijel: mbstring is used for handling multibyte inside parser, so it is good * to tell user something might be broken without it, see bug #1063149. */ if (! @extension_loaded('mbstring')) { trigger_error( __('The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.'), E_USER_WARNING ); } /** * Check whether session.gc_maxlifetime limits session validity. */ $gc_time = (int)@ini_get('session.gc_maxlifetime'); if ($gc_time < $GLOBALS['cfg']['LoginCookieValidity'] ) { trigger_error( __('Your PHP parameter [a@http://php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime@_blank]session.gc_maxlifetime[/a] is lower than cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin.'), E_USER_WARNING ); } /** * Check whether LoginCookieValidity is limited by LoginCookieStore. */ if ($GLOBALS['cfg']['LoginCookieStore'] != 0 && $GLOBALS['cfg']['LoginCookieStore'] < $GLOBALS['cfg']['LoginCookieValidity'] ) { trigger_error( __('Login cookie store is lower than cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin.'), E_USER_WARNING ); } /** * Check if user does not have defined blowfish secret and it is being used. */ if (! empty($_SESSION['auto_blowfish_secret']) && empty($GLOBALS['cfg']['blowfish_secret']) ) { trigger_error( __('The configuration file now needs a secret passphrase (blowfish_secret).'), E_USER_WARNING ); } /** * Check for existence of config directory which should not exist in * production environment. */ if (file_exists('config')) { trigger_error( __('Directory [code]config[/code], which is used by the setup script, still exists in your phpMyAdmin directory. You should remove it once phpMyAdmin has been configured.'), E_USER_WARNING ); } if ($server > 0) { $cfgRelation = PMA_getRelationsParam(); if (! $cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == false ) { $msg = PMA_Message::notice(__('The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. To find out why click %shere%s.')); $msg->addParam( '', false ); $msg->addParam('', false); /* Show error if user has configured something, notice elsewhere */ if (!empty($cfg['Servers'][$server]['pmadb'])) { $msg->isError(true); } $msg->display(); } // end if } /** * Warning about different MySQL library and server version * (a difference on the third digit does not count). * If someday there is a constant that we can check about mysqlnd, * we can use it instead of strpos(). * If no default server is set, PMA_DBI_get_client_info() is not defined yet. * Drizzle can speak MySQL protocol, so don't warn about version mismatch for * Drizzle servers. */ if (function_exists('PMA_DBI_get_client_info') && !PMA_DRIZZLE && $cfg['ServerLibraryDifference_DisableWarning'] == false ) { $_client_info = PMA_DBI_get_client_info(); if ($server > 0 && strpos($_client_info, 'mysqlnd') === false && substr(PMA_MYSQL_CLIENT_API, 0, 3) != substr(PMA_MYSQL_INT_VERSION, 0, 3) ) { trigger_error( PMA_sanitize( sprintf( __('Your PHP MySQL library version %s differs from your MySQL server version %s. This may cause unpredictable behavior.'), $_client_info, substr( PMA_MYSQL_STR_VERSION, 0, strpos(PMA_MYSQL_STR_VERSION . '-', '-') ) ) ), E_USER_NOTICE ); } unset($_client_info); } /** * Warning about Suhosin */ if ($cfg['SuhosinDisableWarning'] == false && @ini_get('suhosin.request.max_value_length') // warn about Suhosin only if its simulation mode is not enabled && @ini_get('suhosin.simulation') == '0' ) { trigger_error( sprintf( __('Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'), '[doc@faq1-38]', '[/doc]' ), E_USER_WARNING ); } /** * Warning about mcrypt. */ if (! function_exists('mcrypt_encrypt') && ! $GLOBALS['cfg']['McryptDisableWarning'] ) { PMA_warnMissingExtension('mcrypt'); } /** * Warning about incomplete translations. * * The data file is created while creating release by ./scripts/remove-incomplete-mo */ if (file_exists('libraries/language_stats.inc.php')) { include 'libraries/language_stats.inc.php'; /* * This message is intentionally not translated, because we're * handling incomplete translations here and focus on english * speaking users. */ if (isset($GLOBALS['language_stats'][$lang]) && $GLOBALS['language_stats'][$lang] < $cfg['TranslationWarningThreshold'] ) { trigger_error( 'You are using an incomplete translation, please help to make it better by [a@http://www.phpmyadmin.net/home_page/improve.php#translate@_blank]contributing[/a].', E_USER_NOTICE ); } } /** * prints list item for main page * * @param string $name displayed text * @param string $id id, used for css styles * @param string $url make item as link with $url as target * @param string $mysql_help_page display a link to MySQL's manual * @param string $target special target for $url * @param string $a_id id for the anchor, * used for jQuery to hook in functions * @param string $class class for the li element * @param string $a_class class for the anchor element * * @return void */ function PMA_printListItem($name, $id = null, $url = null, $mysql_help_page = null, $target = null, $a_id = null, $class = null, $a_class = null ) { echo '
'; if (null !== $url) { echo ''; } echo $name; if (null !== $url) { echo '' . "\n"; } if (null !== $mysql_help_page) { echo PMA_Util::showMySQLDocu('', $mysql_help_page); } echo '
'; } ?> .

我已经使用命令安装了 phpmyadmin-

sudo apt-get install phpmyadmin

并成功安装apache2服务器。 apache2 服务器也运行良好,当我打开时本地主机在浏览器中打开 -Apache2 Ubuntu 默认页面但一打开本地主机/phpmyadmin它会打开一些文本。


终于我的问题解决了!我不太清楚哪些命令对我有用,但这些是我为解决问题而运行的最后命令。

sudo apt-get install -f

sudo apt-get remove --purge apache* && sudo apt-get 删除 --purge libapache* && sudo apt-get 删除 --purge php*

sudo apt-get remove --purge php5-common php5-cli

sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-服务器 php5-mysql

sudo 服务 apache2 重新启动 sudo apt-get install phpmyadmin sudo service apache2 restart

sudo apt-get remove --purge php5-common php5-cli

sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server php5-mysql

sudo 服务 apache2 重新启动

并浏览它http://localhost/phpmyadmin/

如果你的问题仍然没有解决,那么首先安装node js -

sudo apt-get 更新

sudo apt-get 安装nodejs

然后再次尝试所有命令,因为在运行上述命令之前我还安装了node js,我认为node js与此javascript问题或参考问题有关-https://askubuntu.com/questions/308523/i-have-broken-ubuntu and https://askubuntu.com/questions/307761/php-server-setup-not-working

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

phpmyadmin 出现奇怪的错误,安装成功但仍然无法运行 的相关文章

随机推荐

  • 子类化 SimpleCursorAdapter 以包含 ConvertView 以节省内存

    我一直在搜索示例和教程 但我似乎无法理解如何在子类 SimpleCursorAdapter 中处理回收 我知道 对于常规 ArrayAdapter 您可以检查 ConvertView 是否为 null 如果为 null 则从 xml 中膨胀
  • 在 VBA 中使用 FTP

    我编写了 VBA 代码 该代码根据 Excel 数据 Websphere MQ Define Job 为 IBM 主机创建一个包含作业代码的 txt 文件 如果能够通过 FTP 自动将此文件传输到主机 那就太酷了 此时我通过以下方式手动执行
  • 在 iphone webView 中打开 .docx 的代码

    我是 iPhone 新手 我正在尝试在 UIwebView 中打开 docx 文件 我编写了以下代码 NSString urlAddress NSBundle mainBundle pathForResource Arabic litera
  • 为什么有些 PHP 安装有 $_SERVER['SCRIPT_URI'] 而其他安装没有?

    我运行两台 Apache 2 服务器 一个是 PHP5 2 另一个是 PHP5 3 5 3 机器上有什么原因吗 SERVER SCRIPT URI 这个变量从哪里来 它显然是来自 Apache 环境的东西 并且 PHP 手册中没有记录它 然
  • 对 Java 方法签名的完全限定引用

    是什么proper如何在 Java 中编写对方法名称的完全限定引用 Message com sun mail imap IMAPFolder addMessages Message Message com sun mail imap IMA
  • VueJS 手风琴表 - 出现在表之外

    我有一个表 其中使用 ajax 获取数据 我试图创建一个表 其中每行都有一个关联的隐藏行 单击该行可切换隐藏行的显示 隐藏行包含一个手风琴 问题是手风琴变得一团糟并显示在表格底部 而不是显示在它被单击的特定行下方 我的代码如下 table
  • 它将打印什么 console.log(1+ + "2")

    为什么这个 JavaScript 声明 console log 1 2 print 3 作为输出 我不知道为什么它会打印这个 我期望 12 or 字符串前面的操作数将其转换为数字 所以在这里 2 会变成2因此结果将是3 gt 1 2 2 2
  • Android 检测实际正在播放的铃声(Ringtone.isPlaying 问题)

    在 Android 上 我在尝试找出实际正在播放的铃声时遇到问题 我不是在尝试检测默认铃声 而是实际播放的铃声 因为由于用户为特定铃声设置了特定铃声 因此实际播放的铃声可能会有所不同 接触 当我循环浏览 成功 RingtoneManager
  • Spark 流不记得以前的状态

    我编写了带有状态转换的 Spark Streaming 程序 看来我的 Spark 流应用程序正在通过检查点正确地进行计算 但是 如果我终止程序并再次启动它 它不会读取之前的检查点数据并从头开始 这是预期的行为吗 我是否需要更改程序中的任何
  • 原生IOS设置远程视频描述发送参数失败

    这是 sdpOffer offer v 0 o 1514366952141741 1 输入 IP4hostx s 安装点 99 t 0 0 a 组 捆绑视频 a msid 语义 WMS janus m 视频 9 UDP TLS RTP SA
  • 将一个 TLD 的所有页面重定向到另一个 TLD

    今晚我简直要抓狂地想弄清楚这个问题了 我希望有人能帮助我 我的网站有 3 个 TLD 类似于以下内容 www domain com www domain org www domain net 它们都位于同一目录中 我想设置 301 重定向
  • PHP 开放时间 [关闭]

    Closed 这个问题需要细节或清晰度 目前不接受答案 我有一个客户想要一家在线披萨店 当然 他也不希望顾客在营业时间之后下订单 我为此制作了一个简单的脚本 我想我将来可能会与任何想要的人分享
  • DES、三重 DES、AES、河豚数据加密的比较

    有人比较这些加密算法的优缺点吗 Use AES 更详细地说 DES 是七十年代的旧 数据加密标准 它的密钥大小对于适当的安全性而言太短 56 个有效位 这可以被暴力破解 正如已经证明的那样十多年前 此外 DES 使用 64 位块 这在使用相
  • 使用 SharedPreferences 设置登录状态并在应用程序启动时检索它 - Flutter

    我有一个 flutter 应用程序 在该应用程序启动时我必须检查登录状态并相应地调用相关屏幕 用于启动应用程序的代码 class MyApp extends StatefulWidget override MyAppState create
  • 左外连接与 Entity Framework Core

    我正在尝试使用 EF7 7 0 0 rc1 final vNext RC1 rc1 final 和 SQL Server 2014 执行左外连接请求 数据库 宠物 身份证 姓名 用户 ID 姓名 PetId 这个有效 var queryWo
  • ASP.NET Core 中基于令牌的身份验证(已更新)

    我正在使用 ASP NET Core 应用程序 我正在尝试实现基于令牌的身份验证 但不知道如何使用新的保安系统 我的场景 客户端请求令牌 我的服务器应该授权用户并返回 access token 客户端将在以下请求中使用该令牌 这里有两篇关于
  • 具有格式相关类型的柯里化函数

    据我所知 F 不像处理其他函数那样处理 printfn 因为它依赖于字符串参数的类型 有人可以向我解释为什么这会阻止我这样做吗 let printn printfn A 该错误表示类型被推断为 a gt unit 我需要添加显式参数或类型注
  • 使用Friendly_id匹配单个Rails路线中的多个模型

    我有一个公司和一个用户模型 两者都有一个通过Friendly id 的slug 确保两种模型中的段头都是唯一的 我想要网址 http www example com any company name http www example com
  • Google 地图 API 路线

    我可以在应用程序中的谷歌地图上标记两个点 然后计算地图上的方向以及逐向导航吗 我正在创建一个应用程序 用于获取两点之间的行驶方向在地图上 一步一步 step1首先创建一个类MyOverlay java用于绘制路径 import androi
  • phpmyadmin 出现奇怪的错误,安装成功但仍然无法运行

    我一整天都在努力安装 phpmyadmin 我已经尝试重新安装很多次了 但还是不行 打开 localhost phpmyadmin 时 我收到一些文本 而不是实际的 phpmyadmin UI 正文是 addJSON options PMA