PHP5.3.1 不再支援ISAPI_PHP教程

來源:互聯網
上載者:User
要在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%\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.

  詳細介紹:http://www.php.net/manual/en/install.windows.iis6.php

http://www.bkjia.com/PHPjc/321010.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/321010.htmlTechArticle要在IIS6上使用高版本PHP,必須安裝fastCGI擴充, Microsoft FastCGI Extension for IIS 5.1 and 6.0 然後讓你的IIS6支援fastCGI即可。 然後設定一下php.ini中的...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.