PHP5.3.1 不再支持ISAPI
microsoft fastcgi extension for iis 5.1 and 6.0
然后让你的iis6支持fastcgi即可。
然后设定一下php.ini中的cgi and fastcgi参数:
fastcgi.impersonate = 1
fastcgi.logging = 0
cgi.fix_pathinfo=1
cgi.force_redirect =0
cgi.rfc2616_headers=1
然后制作一个批处理文件,运行一下代码:
c %windir%\system32\inetsrv\fcgiconfig.js -add -section:"php" ^
-extension:php -path:"c:\php\php-cgi.exe"
将c:\php\php-cgi.exe替换成自己的安装路径!
如果你在使用phpmyadmin 3.1.0rc版,需要将.libraries/select_lang.lib.php 则需要将147,148行的
if (($envtype == 1 && eregi('^(' . $expr . ')(;q=[0-9]\\.[0-9])?$', $str))
|| ($envtype == 2 && eregi('(\(|\[|;[[:space:]])(' . $expr . ')(;|\]|\))', $str))) {
更换为:
if (($envtype == 1 && preg_match('^(' . $expr . ')(;q=[0-9]\\.[0-9])?$', $str))
|| ($envtype == 2 && preg_match('(\(|\[|;[[:space:]])(' . $expr . ')(;|\]|\))', $str))) {
否则会报错:
in .\libraries\select_lang.lib.php#147
eregi() is deprecated
backtrace
.\libraries\select_lang.lib.php#147: eregi()
.\libraries\select_lang.lib.php#81: pma_langdetect(
string zh-cn,
integer 1,
)
.\libraries\select_lang.lib.php#361: pma_langcheck()
.\libraries\common.inc.php#560: require_once(.\libraries\select_lang.lib.php)
.\index.php#34: require_once(.\libraries\common.inc.php)
另外注意:在iis上安装php5.3.1,官方推荐non-thread-safe build of php
下载地址:
php for windows: binaries and sources releases.
详细介绍: