| 
       
	[root@localhost mbstring]# wget http://jaist.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.0.8/phpMyAdmin-4.0.8-all-languages.tar.gz 
[root@localhost mbstring]# tar xf phpMyAdmin-4.0.8-all-languages.tar.gz -C /www [root@localhost mbstring]# chown daemon.daemon /www/ -R [root@localhost mbstring]# service apache restart 
 访问页面http://127.0.0.1/phpadmin/index.php 报错 The mbstring extension is missing. Please check your PHP configuration. 错误很明显php模块扩展,由于我已经装好了php,又不想重新编译,所以就只能动态扩展 
	[root@localhost logs]# cd /usr/src/php-5.3.27/ext/ [root@localhost mbstring]# phpize -----生成configure 等文件 [root@localhost modules]# ./configure --with-libdir=/usr/local/lib/php/extensions/no-debug-zts-20060613 --with-php-config=/usr/local/bin/php-config [root@localhost modules]# make && make install 
	Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-zts-20090626/  ----------这个路径就是php模块扩展的路径 
	[root@localhost modules]# pwd 接下来就是要修改php.ini了 [root@localhost modules]# vi /usr/local/lib/php.ini 
	extension="/usr/local/lib/php/extensions/no-debug-zts-20090626/" 再次访问http://127.0.0.1/phpadmin/index.php 
	 授权一个tt用户 
	mysql> grant all on *.* to tt@localhost identified by '123'; 
	 发现报错,缺少 mcrypt 扩展。请检查 PHP 配 又是模块扩展,那就在打个补丁吧。 
	[root@localhost mcrypt]# pwd 
	[root@localhost mcrypt]# ls 
	[root@localhost mcrypt]# phpize;ls 现在就就可以编译了 [root@localhost mcrypt]# ./configure --with-php-config=/usr/local/bin/php-config --with-mcrypt=/usr [root@localhost mcrypt]# make 
	[root@localhost mcrypt]# make install 
	[root@localhost mcrypt]# ls modules/ [root@localhost mcrypt]# vi /usr/local/lib/php.ini extension=mcrypt.so ---------------增加这一行 
	新版本的PhpMyAdmin 增强了安全性,需要在配置文件设置一个短语密码。否则进入之后会有“配置文件现在需要一个短语密码。”的红色警叹提示。    解决方法: 
 
	[root@localhost libraries]# pwd $cfg['blowfish_secret'] = '123456'; 
 
	  2、在phpMyAdmin目录中,打开config.sample.inc.php,18行 
 重启apache之后访问没有再报这个错误。 
 
	 (责任编辑:IT)  | 
    



    1、将 phpMyAdmin/libraries/config.default.php中的