TODO:當PHP遇上IIS

來源:互聯網
上載者:User

標籤:windows   修改註冊表   解譯器   程式   十進位   

TODO:當PHP遇上IIS

IIS調用PHP是使用CGI的功能,所以IIS一定要開啟CGI的功能。預設為將 PHP 編譯為 C CGI 程式。這將建立一個命令列解譯器,可用於 CGI 處理或非 web 相關的 PHP 指令碼。

開啟“MIME類型”配置

安裝“PHP Manager”,目前PHP Manager只支援IIS7,在Windows 8之後系統預設的IIS版本都是大於7的版本;那麼要安裝就得做特殊處理,修改註冊表HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters的MajorVersion 是DWORD值,它的值十進位是10,把它改成9;安裝好PHP Manager,在把值改回來。小O在windows10下安裝成功了。

650) this.width=650;" src="http://p1.pstatp.com/large/16310005dbd54375ab2a" alt="TODO:當PHP遇上IIS" style="border:0px;margin:10px auto;" />

650) this.width=650;" src="http://p3.pstatp.com/large/16800002d08c5e119af7" alt="TODO:當PHP遇上IIS" style="border:0px;margin:10px auto;" />

為了安全起見,建議把“瀏覽目錄”的功能關閉

設定“預設文件”,可以添加常見的index尾碼,如php,html,htm等

PHP Manager主要用來配置PHP的版本,PHP的擴充功能,簡單便捷

650) this.width=650;" src="http://p9.pstatp.com/large/16850002d47085cd0b6a" alt="TODO:當PHP遇上IIS" style="border:0px;margin:10px auto;" />

如果你有這樣的業務環境,希望對你有所啟發吧。本文只是小O的一次記錄。小O是非常不喜歡PHP生產環境使用IIS。

wxgzh:ludong86

650) this.width=650;" src="https://s2.51cto.com/wyfs02/M00/8E/86/wKiom1jDXCvD47ovAABp439LG_4478.jpg-wh_500x0-wm_3-wmp_4-s_2108358332.jpg" title="qrcode_for_gh_6bb1f39ae99c_258-1.jpg" alt="wKiom1jDXCvD47ovAABp439LG_4478.jpg-wh_50" />

本文出自 “電腦語言驅動資料” 部落格,請務必保留此出處http://onetodo.blog.51cto.com/12321875/1905362

TODO:當PHP遇上IIS

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.