
下载地址
选择需要下载的php版本
这里我们以下载php5.5为例
PHPManagerForIIS-1.2.0-x64
英文版:microsoft visual c++ 2010 redistributable package (x86) [4.84 mb]/microsoft visual c++ 2010 redistributable package (x64) [5.45 mb]。vc11版本要求用户安装visual c++ redistributable for visual studio 2012(x86 | x64)。be careful that you have the right visual studio version (10.0 = vs 10, 11 = vs 2012, 12.0 = vs 2013...) right architecture (x64 or x86) for your dll's target platform, and also you need to be careful around debug builds. the debug build of a dll depends on msvcr120d.dll which is a debug version of the library, which is installed with visual studio but not by the redistributable package.。

ͼ1
开始安装php(前提下iis已经安装完毕)
1.安装PHPManagerForIIS-1.2.0-x64。
具体的操作按照图2、图3、图4所示:


ͼ2

ͼ3

ͼ4
已经安装完成。
2.打开IIS

ͼ5

打开php manager 点击如图6所示:

ͼ6
选择所下载php文件所在路径,如图7、图8:
备注:在这里要注意下,这里要哪个版本php就选择哪个版本的php文件路径,可以任意版本随意切换的。比较方便简单

ͼ7

ͼ8
点击确定,如图9:


ͼ9
这样php已经完成了。
vc11版本要求用户安装visual c++ redistributable for visual studio 2012(x86 | x64)。注意:vc6.0不支持win8,如果你需要在win8下使用微软的c/c++编译器,又不希望安装visual studio,那么c语言中文网为你提供了c-free mscl版win2008 安装php,在c-free 5.0的基础上集成了visual studio 2010 sp1的编译器、调试工具等,相当于给visual studio 2010 sp1换了个界面,但是安装包大小仅有42m,效率也是visual studio的数倍。vcredist_x86_2012:vcredist_x86_2012(visual c++ redistributable package)安装visual c++ 2012库的运行时组件,这些组件是在未安装 visual studio 2012 的计算机上运行使用 visual studio 2。
从微软官方下载:?id=30679

ͼ10
直接安装就ok了。
现在已经php安装已经全部结束了。
4.php安装完成之后,我们做个php测试页测试以下

首先建立index.php文件,内容如图11所示:

ͼ11
在php环境下搭建网站win2008 安装php,创建站点,具体步骤如图12、图13所示:

ͼ12

ͼ13
打开浏览器输入: ,将会显示本服务器所支持PHP的全部信息,可以看到PHP版本为5.5.8。如下图14所示:

ͼ14
测试安装成功。
注释:这是个多版本随意切换的安装方法,只要下载相应的php就可以了。
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-106582-1.html
敢于鼓足勇气对美国说关你鸟事