首先安裝好IIS 安裝的時候 要注意三個地方打得勾php
注: CGI 會在IIS+PHP的環境中用到session
php.inisocket
default_socket_timeout = 60
extension_dir = "D:\php5.3\ext\"
error_log = "C:\Windows\Temp\php-5.3.6_errors.log"
upload_tmp_dir = "D:\Temp\"網站
session.save_path = "D:\Temp\"
cgi.force_redirect = 0
cgi.fix_pathinfo = 1
fastcgi.impersonate = 1
fastcgi.logging = 0blog
安裝PHPManagerForIIS-1.2.0-x64,安裝完後打開IISio
選擇php目錄。新建網站,而後點擊check_phpinof()能夠檢測php是否安裝成功。ast
需注意的事上傳目錄及session文件目錄權限的問題,最好在user用戶上勾上編輯。cgi
如下是PHPManagerForIIS-1.2.0-x64下載fastcgi
http://pan.baidu.com/s/1dDm8kV3權限