我试图在我的Debian 6服务器上设置新鲜的phpMyAdmin安装,以使用http身份validation,而不是安装时默认的基于cookie的身份validation。
为此,我编辑了$cfg['Servers'][$i]['auth_type']行,在/etc/phpmyadmin/config.inc.php使用'http'作为其设置,然后重新启动服务器。该设置似乎被忽略,因为当我转到phpmyadmin,它仍然提供常规login框。
我之前做过两次(一次是在Debian上,一次是在Ubuntu上),所以我不确定为什么这次不工作。
谢谢
在Debian 6上,我编辑了/usr/share/phpmyadmin/config.inc.php ,它保存了默认值。
我变了
if (!isset($cfg['Servers'][$i]['auth_type'])) { $cfg['Servers'][$i]['auth_type'] = 'cookie'; }
至
if (!isset($cfg['Servers'][$i]['auth_type'])) { $cfg['Servers'][$i]['auth_type'] = 'http'; }
该文件中有一个大标题,警告你不要编辑它,但是,你知道,它的工作! 我正在等待所有你不应该做我所做的事情的原因。