要在IIS6上使用高版本PHP,必须安装fastCGI扩展,
MicrosoftFastCGIExtensionforIIS5.1and6.0
然后让你的IIS6支持fastCGI即可。
然后设定一下php.ini中的CGIandFastCGI参数:
fastcgi.impersonate=1
fastcgi.logging=0
cgi.fix_pathinfo=1
cgi.force_redirect=0
cgi.rfc2616_headers=1
然后制作一个批处理文件,运行一下代码:
c%windir%system32inetsrvfcgiconfig.js-add-section:"PHP"^
-extension:php-path:"C:PHPphp-cgi.exe"
将C:PHPphp-cgi.exe替换成自己的安装路径!
如果你在使用phpMyadmin3.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.librariesselect_lang.lib.php#147
eregi()isdeprecated
Backtrace
.librariesselect_lang.lib.php#147:eregi()
.librariesselect_lang.lib.php#81:PMA_langDetect(
stringzh-cn,
integer1,
)
.librariesselect_lang.lib.php#361:PMA_langCheck()
.librariescommon.inc.php#560:require_once(.librariesselect_lang.lib.php)
.index.php#34:require_once(.librariescommon.inc.php)
另外注意:在IIS上安装PHP5.3.1,官方推荐Non-thread-safebuildofPHP
下载地址:
PHPforWindows:BinariesandSourcesReleases.
详细介绍:http://www.php.net/manual/en/install.windows.iis6.php
您可能感兴趣的文章:Ubuntu12下编译安装PHP5.3开发环境php5.3不能连接mssql数据库的解决方法php5.3以后的版本连接sqlserver2000的方法PHP5.3与5.5废弃与过期函数整理汇总使用pthreads实现真正的PHP多线程(需PHP5.3以上版本)php5.3goto函数介绍和示例php5.3不支持session_register()此函数已启用的解决方法php5.3注意事项说明php5.3废弃函数小结PHP5.3新特性小结