在安装phpmyadmin之后,我一直收到错误“configuration文件现在需要一个秘密密码”。 我已经设置了密码,并遵循https://serverfault.com/questions/291490/phpmyadmin-not-allowing-users-to-log-on上提供的指示,但似乎并没有工作。 我正在使用AMI,并且还拥有所有者和权限。 请帮助。
这可能有所帮助, https://wiki.archlinux.org/index.php/PhpMyAdmin#Add_blowfish_secret_passphrase
如果您在首次login到/ phpmyadmin(使用以前设置的MySQL用户名和密码)时在页面底部看到以下错误消息:
ERROR: The configuration file now needs a secret passphrase (blowfish_secret)
您需要在phpMyAdmin的configuration文件中添加河豚密码。 编辑/etc/webapps/phpmyadmin/config.inc.php并在行中插入一个随机的blowfish“密码”
$cfg['blowfish_secret'] = ; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
现在应该看起来像这样:
$cfg['blowfish_secret'] = 'qtdRoGmbc9{8IZr323xYcSN]0s)r$9b_JUnb{~Xz'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
这一切都假定你已经正确地创build了configuration文件,
cp config.sample.inc.php config.inc.php
我也得到错误The configuration file now needs a secret passphrase (blowfish_secret)当configuration文件$cfg['blowfish_secret']设置。 我正在使用CentOS v6,并使用yum从EPEL回购安装了PHPMyAdmin。 我设置nginx来托pipePHPMyAdmin,PHPMyAdmin包(默认情况下)被设置为使用Apache。 configuration文件位于/etc/phpMyAdmin/config.inc.php (你可以在libraries/vendor_config.php检查CONFIG_DIR来find你的configuration文件的位置),如果你注意到,用户是root,组是apache为文件和目录。 这导致PHPMyAdmin无法读取configuration文件。 为了解决这个问题,使用chown将组更改为正在运行Web服务器的组(在我的情况下,组是nginx )。 您将需要更改目录和configuration文件的所有者(如下所示)。
chown -R root.nginx /etc/phpMyAdmin/
请注意,如果PHPMyAdmin更新,您可能需要重新执行此操作。 如果启用了SELinux,您可能还有权限问题。
除了检查http(web服务器)组的可执行权限之外,还应该检查php.ini中的“open_basedir”条目是否包含config.inc.php所在的目录(如果已设置)。 这为我解决了这个问题。
转到phpmyadmin文件夹>search“ lint.php ”并设置= 'require_once'libraries / config.inc.php';
它将明确地解决你的问题。
如果它解决了你的问题,那么多谢我。
按着这些次序:
1)进入/etc/httpd/conf.d/phpmyadmin.conf
2)转到/usr/share/phpmyadmin ,打开conf.inc.php
3)为blowfish_secret添加值,如 –
$cfg['blowfish_secret'] = 'mrgQxxk8C-y}U7ji2BO9o5jLf}Qhe-BI[~6SUa';/* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
4)保存并退出。
5)清除浏览器caching
6)尝试访问URL:http: //yourserver.com/phpmyadmin/index.php