register_globals = Off->register_globals = On5.复制php文件夹目录下的libmysql.dll和libmcrypt.dll到c:\windows\system32目录下。 6.修改httpd.conf,添加下面几行:
extension_dir = "./"->extension_dir = "c:\php\ext"
去掉三个前面的冒号 ;extension=php_mbstring.dll->extension=php_mbstring.dll
;extension=php_mcrypt.dll->extension=php_mcrypt.dll
;extension=php_mysql.dll->extension=php_mysql.dll
LoadModule php5_module C:/php/php5apache2_2.dll7.解压缩phpMyAdmin到Apache指定的Documentroot目录下 8.修改config.sample.inc.php文件名为config.inc.php 9.配置config.inc.php文件(亦可以参考phpMyAdmin目录下的Documentation.html的"Quick Install") 10.
PHPIniDir "C:/php/" DirectoryIndex index.php index.html AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
a.手工修改(这是我的配置实例,仅供参考)<?phpb.通过Web界面进行修改
/*
* Generated configuration file
* Generated by: phpMyAdmin 2.10.0.2 setup script by Michal Čihař <michal@cihar.com>
* Version: $Id: setup.php 9697 2006-11-13 08:32:28Z nijel $
* Date: Sat, 14 Apr 2007 08:27:28 GMT
*/ /* Servers configuration */
$i = 0; /* Server localhost (cookie) [1] */
$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = true;
$cfg['Servers'][$i]['auth_type'] = 'cookie'; /* End of servers configuration */ $cfg['blowfish_secret'] = '46208fe1319777.57747900';
?>
[url]http://yourdomain/phpmyadmin/script/setup.php[/url]进行配置
本文出自 “sharp” 博客,请务必保留此出处http://sharp.blog.51cto.com/134660/23783