PHP5.3.1 不再支持ISAPI
作者:bea
要在IIS6上使用高版本PHP,必须安装fastCGI扩展, 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.rf
要在IIS6上使用高版本PHP,必须安装fastCGI扩展,
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%system32inetsrvfcgiconfig.js -add -section:"PHP" ^
-extension:php -path:"C:PHPphp-cgi.exe"
将C:PHPphp-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 .librariesselect_lang.lib.php#147
eregi() is deprecated
Backtrace
.librariesselect_lang.lib.php#147: eregi()
.librariesselect_lang.lib.php#81: PMA_langDetect(
string zh-cn,
integer 1,
)
.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-safe build of PHP
下载地址:
PHP for Windows: Binaries and Sources Releases.
详细介绍:http://www.php.net/manual/en/install.windows.iis6.php
有用 | 无用
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%system32inetsrvfcgiconfig.js -add -section:"PHP" ^
-extension:php -path:"C:PHPphp-cgi.exe"
将C:PHPphp-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 .librariesselect_lang.lib.php#147
eregi() is deprecated
Backtrace
.librariesselect_lang.lib.php#147: eregi()
.librariesselect_lang.lib.php#81: PMA_langDetect(
string zh-cn,
integer 1,
)
.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-safe build of PHP
下载地址:
PHP for Windows: Binaries and Sources Releases.
详细介绍:http://www.php.net/manual/en/install.windows.iis6.php
有用 | 无用
猜你喜欢
您可能感兴趣的文章:
- 在PHP中养成7个面向对象的好习惯
- php 正确解码javascript中通过escape编码后的字符
- php读取xml实例代码
- 通过具体程序来理解PHP里面的抽象类
- 认识并使用PHP超级全局变量
- php 静态变量与自定义常量的使用方法
- php学习之 认清变量的作用范围
- PHP 变量的定义方法
- php cout<<的一点看法
- php addslashes和mysql_real_escape_string
- PHPMailer 中文使用说明小结
- 关于php fread()使用技巧
- PHP 时间转换Unix时间戳代码
- 在命令行下运行PHP脚本[带参数]的方法
- php获取url字符串截取路径的文件名和扩展名的函数
- PHP has encountered an Access Violation 错误的解决方法
- 获取远程文件大小的php函数
- PHP 编程安全性小结
- 基于Windows下Apache PHP5.3.1安装教程