Home > Article > Backend Development > PHP5.3.1 no longer supports ISAPI_PHP tutorial
To use a higher version of PHP on IIS6, the fastCGI extension must be installed.
Microsoft FastCGI Extension for IIS 5.1 and 6.0
Then make your IIS6 support fastCGI.
Then set the CGI and FastCGI parameters in php.ini:
fastcgi.impersonate = 1
fastcgi.logging = 0
cgi.fix_pathinfo=1
cgi.force_redirect =0
cgi.rfc2616_headers=1
Then make a batch file and run the code:
c %windir%system32inetsrvfcgiconfig.js -add -section:"PHP" ^
-extension:php -path:"C:PHPphp-cgi.exe"
Replace C:PHPphp-cgi.exe with your own installation path!
If you are using phpMyadmin version 3.1.0rc, you need to change lines 147 and 148 of .libraries/select_lang.lib.php
if (($envType == 1 && eregi('^(' . $expr . ')(;q=[0-9]\.[0-9])?$', $str))
|| ($envType == 2 && eregi('((|[|;[[:space:]])(' . $expr . ')(;|]|))', $str)) ) {
Replaced with:
if (($envType == 1 && preg_match('^(' . $expr . ')(;q=[0-9]\.[0-9])?$', $str))
|| ($envType == 2 && preg_match('((|[|;[[:space:]])(' . $expr . ')(;|]|))', $str)) ) {
Otherwise, an error will be reported:
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)
Also note: When installing PHP5.3.1 on IIS, the official recommendation is Non-thread-safe build of PHP
Download address:
PHP for Windows: Binaries and Sources Releases.
Detailed introduction: http://www.php.net/manual/en/install.windows.iis6.php
in php.ini