phpMyAdmin从4.6.6更新到4.7.5生成;未定义索引:ssl“U密钥”;

phpMyAdmin从4.6.6更新到4.7.5生成;未定义索引:ssl“U密钥”;,phpmyadmin,Phpmyadmin,我最近尝试将phpMyAdmin实例从版本4.6.6更新为4.7.5。更新本身进行得很顺利,但是在连接到数据库后,我现在在大多数页面的底部看到了以下警告消息: Undefined index: ssl_key Undefined index: ssl_cert Undefined index: ssl_ca_path Undefined index: ssl_ciphers 我连接到的数据库使用自签名证书。在我的phpMyAdmin配置中,我有以下与SSL相关的指令: $cfg['Server

我最近尝试将phpMyAdmin实例从版本
4.6.6
更新为
4.7.5
。更新本身进行得很顺利,但是在连接到数据库后,我现在在大多数页面的底部看到了以下警告消息:

Undefined index: ssl_key
Undefined index: ssl_cert
Undefined index: ssl_ca_path
Undefined index: ssl_ciphers
我连接到的数据库使用自签名证书。在我的phpMyAdmin配置中,我有以下与SSL相关的指令:

$cfg['Servers'][$i]['ssl'] = true;
$cfg['Servers'][$i]['ssl_ca'] = '../ssl/cacert.crt';
$cfg['Servers'][$i]['controlssl'] = true;
$cfg['Servers'][$i]['controlssl_ca'] = '../ssl/cacert.crt';
$cfg['Servers'][$i]['ssl_verify'] = false;
$cfg['Servers'][$i]['controlssl_verify'] = false;
4.6.6
下,这就足够了。即使在
4.7.5
下,这似乎也适用于使用SSL连接,但它会显示这些警告消息

我已尝试添加以下其他SSL指令:

$cfg['Servers'][$i]['ssl'] = true;
$cfg['Servers'][$i]['ssl_ca'] = '../ssl/cacert.crt';
$cfg['Servers'][$i]['controlssl'] = true;
$cfg['Servers'][$i]['controlssl_ca'] = '../ssl/cacert.crt';
$cfg['Servers'][$i]['ssl_verify'] = false;
$cfg['Servers'][$i]['controlssl_verify'] = false;
警告信息仍然存在


我如何确定这些警告消息的原因?

很清楚,您从配置粘贴到这里的ssl指令位于
config.inc.php
,而不是
libraries/config.default.php
,对吗?这没有什么意义,我无法复制它。您是否修改过
库/config.default.php
?现在报告丢失的那些行(例如
$cfg['Servers'][$i]['ssl\u key']]=null;
在默认文件中定义(该文件永远不会被编辑)出现此错误消息的最合乎逻辑的原因是有人从中删除了这些行。您能否在文本编辑器中打开
libraries/config.default.php
,并搜索“ssl_key”和“ssl_ca”值,以查看默认文件中是否存在这两个值?@IsaacBennetch我在帖子中提到的ssl指令只是de到
config.inc.php
文件。我只是通过以下步骤进行了一次新的更新:*我下载了
phpMyAdmin-4.7.5-all-languages.zip的新副本,并将其解压缩到我的web服务器。*我下载了Metro主题的新副本,解压缩并将其放入
themes
目录。*我获取了
config.inc.php
从我的工作phpMyAdmin 4.6.6副本中复制并将其放入phpMyAdmin目录的根目录中。我打开phpMyAdmin并登录到其中一个数据库,收到了相同的警告消息。您能告诉我您使用的是哪一个php版本吗?@IsaacBennetch我想我已经找到了导致问题的原因。堆栈溢出的注释并不长我可以发布详细信息了。有没有更好的地方可以发布详细信息?我怀疑这是
phpMyAdmin
中的一个bug,与从4.6.x分支到4.7.x分支的代码更改有关。