IIS8.5已经安装完成。
二、安装PHP
1、安装Visual C++ Redistributable for Visual Studio 2012 Update 4(x86)

双击vcredist_x86.exe

安装

正在安装

安装完成,关闭
2、安装Visual C++ Redistributable for Visual Studio 2012 Update 4(x64)

双击vcredist_x64.exe
按照上一步的操作默认安装即可

安装完成后,点关闭
3、安装php-5.5.8-nts-Win32-VC11-x86.zip

解压php-5.5.8-nts-Win32-VC11-x86.zip文件

重命名文件夹为php,把php文件夹拷贝到C盘根目录

打开C:php
复制php.ini-production为php.ini
用记事本打开php.ini
做如下修改:
extension_dir = "C:phpext" #设置php模块路径
date.timezone = PRC #设置时区为中国时区
register_globals = On #开启GET数据调用
short_open_tag = On #php支持短标签
cgi.force_redirect = 0 #开启以CGI方式运行php
fastcgi.impersonate = 1;
cgi.rfc2616_headers = 1
以下php扩展模块,根据需要选择开启,取消前面的分号为开始相应扩展模块
extension=php_curl.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_sockets.dll
extension=php_xmlrpc.dll
extension=php_pdo_mysql.dll

系统运维 www.osyunwei.com 温馨提醒:qihang01原创内容©版权所有,转载请注明出处及原文链接
最后,保存退出
4、配置IIS支持PHP



打开:控制面板-系统和安全-管理工具-Internet Information Services(IIS)管理器

双击左边“起始页”下面的计算机名称

找到中间的IIS部分,打开“处理程序映射”

点右边的“添加模块映射”

请求路径:*.php
模块:FastCgiModule
可执行文件(可选):C:phpphp-cgi.exe
名称:FastCGI









