今天,出现这样的提示
Wrong permissions on configuration file, should not be world writable!
查资料一看,原来phpMyAdmin要在755权限下才能正常工作(777不行)。所以解决办法也就来了:
SSH,cd到phpMyAdmin上级目录,
chmod -R 755 phpMyAdmin
OK!
五、配置apache的httpd.conf
#vi /usr/local/apache2/conf/httpd.conf
1)将DocumentRoot和Directory的目录改为:/webapp/phpMyAdmin
2)在DirectoryIndex中添加index.php
3)添加php的扩展类型:
AddType application/x-httpd-php .php .phtml .php3 .inc
AddType application/x-httpd-php-source .phps
二、配置phpMyAdmin
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = '123456';
#cd /webapp/phpMyAdmin
#cp config.sample.inc.php config.inc.php
#vi config.inc.php
对如下的字段进行配置即可,没有的可以自己添加:
$cfg['Servers'][$i]['auth_type'] = 'config'; // 认证模式,可以有cookie、http和config
$cfg['blowfish_secret'] = 'mabiqiang'; // 使用cookie方式认证的密码短语
$cfg['Servers'][$i]['host'] = '127.0.0.1'; // 设置你的数据库服务器的访问IP
$cfg['Servers'][$i]['user'] = 'root'; // config认证模式时的访问用户名称
$cfg['Servers'][$i]['password'] = 'root'; // config认证模式时的访问密码
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // 连接方式,tcp(默认)或socket
$cfg['Servers'][$i]['extension'] = 'mysqli'; // MYSQL扩展,可以为mysql和mysqli(推荐mysql4.1.0以上版本)
$cfg['Servers'][$i]['only_db'] = array('db1','db2'); // 只显示指定的数据库,字符串或数组
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = '123456';
配置文件现在需要绝密的短语密码(blowfish_secret)。