最近我一直在寫PHP,可是我很喜歡微軟的開發環境和Windows的硬件環境,我就想在IIS上配置一下PHP站點,這樣用起來也比較方便,在通過各位前輩的文章學習後,本身整理了一個比較簡單的圖片爲主的教程,可能比較初級,還但願你們可以多多指教。php
【方案一】mysql
第一步:在IIS上添加一個網站sql
![](http://static.javashuo.com/static/loading.gif)
第二步:目錄瀏覽->打開->應用瀏覽器
![](http://static.javashuo.com/static/loading.gif)
第三步:添加模塊映射curl
![](http://static.javashuo.com/static/loading.gif)
第四步:添加MIME類型學習
![](http://static.javashuo.com/static/loading.gif)
第五步:更改應用程序池配置網站
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
第六步:瀏覽器訪問,如下爲效果圖。url
![](http://static.javashuo.com/static/loading.gif)
【方案二】xml
第一步:下載並安裝PHP Manager。blog
第二步:開啓IIS,你會發現裏面多了一個PHP Manager圖標項了。
第三步:下載php並解壓到想要放置的位置,將php.ini-development更名爲php.ini ,修改php.ini 查找data.timezone 修改成date.timezone = 「Asia/Shanghai」(這裏必須改,否則會出警告) ,找到Windows Extensions開啓 所需模塊,如:php_curl.dll php_mysql.dll php_mysqli.dll php_xmlrpc.dll php_curl.dll,去掉前面的 分號 保存就能夠了。
第四步:回到IIS界面,雙擊PHP Manager後,點擊「Register new PHP Version」,而後選擇好php目錄中的php-cgi.exe,而後php.ini就會爲適合IIS7.5的配置默認給你生成好了。
第五步:在當前界面點一下「Check phpinfo()」就會出現PHPInfo頁面了!
關注公衆號,提出您的問題,咱們會解決您的問題喲!
公衆號:sxmljs
![](http://static.javashuo.com/static/loading.gif)