我在访问phpMyAdmin时遇到问题。
几个星期前,我确实成功地为auth_type ='cookie'configuration了它,但是我仍然收到一个错误,指出我应该设置blowfish_secret。 这是奇怪的,因为它被设置。
所以我把cookie从auth_type改成了http,但是没有成功。 我把它改回了cookie,但它不再工作。
这是错误。
phpMyAdmin - Error Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
这是我的C:\ wamp \ apps \ phpmyadmin3.2.0.1 \ config.inc.php
<?php /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['verbose'] = 'localhost'; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['user'] = ''; $cfg['Servers'][$i]['password'] = ''; $cfg['Servers'][$i]['AllowNoPassword'] = false; // EDIT: // $cfg['Servers'][$i]['blowfish_secret'] = 'this is my passphrase'; $cfg['blowfish_secret'] = 'this is my passphrase'; /* End of servers configuration */ $cfg['DefaultLang'] = 'en-utf-8'; $cfg['ServerDefault'] = 1; $cfg['UploadDir'] = ''; $cfg['SaveDir'] = ''; ?>
我改变了blowfish_secret,因为我不记得旧的,我删除了浏览器中的cookie,并重新启动了所有的wamp服务和浏览器。 在login页面中input用户名和密码后,出现错误。
我试过search日志文件,但我是一个新手,我不知道我搜查了正确的。
我正在使用Apache版本:2.2.11的Wamp server 2.0
PHP版本:5.3.0
MySQL版本:5.1.36
phpmyadmin:3.2.0.1
编辑:
我已经更改为auth_type ='config'设置用户名和密码,然后成功访问phpmyadmin。 然后我再次更改为auth_type ='config',使用与上面相同的configuration文件,它再次工作。
但是现在在phpmyadmin主页面的末尾,我得到这个错误:
The configuration file now needs a secret passphrase (blowfish_secret).
这是废话,因为blowfish_secret被设置。
编辑:
我已经解决了最后一个问题,改变configuration行来设置blowfish_secret。 在// EDIT之后查看上面的configuration
我不认为blowfish_secret是每服务器设置。 它应该是:
$cfg['blowfish_secret'] = 'this is my passphrase';
而从phpmyadmin错误,这听起来像可能是PHP的会话configuration有问题。 如果在apache错误日志中找不到任何东西,请确保PHP设置为通过在php.ini中检查这些值来logging错误:
error_reporting = E_ALL & ~E_NOTICE log_errors = On
您也可以尝试清除与phpmyadmin相关的浏览器cookie(我刚刚解决了一个单独的login问题)。