zno2

php 环境(直接在微软下载即可包含所有的)

1. 下载 php window 64位

 

 

2. 下载 iss7.0

https://www.microsoft.com/web/downloads/platform.aspx

这个网址时好时坏,要有耐心。下载的这个是一个平台,里面可以找到iis

http://php.net/manual/en/install.windows.legacy.index.php#install.windows.legacy.iis6

上面这个网址是php英文文档里关于在 windows 上安装 php的部分

This section contains instructions for manually setting up Internet Information Services (IIS) 5.1 and IIS 6.0 to work with PHP on Microsoft Windows XP and Windows Server 2003. For instructions on setting up IIS 7.0 and later versions on Windows Vista, Windows Server 2008, Windows 7 and Windows Server 2008 R2 refer to Microsoft IIS 7.0 and later.

对应版本下载

这里有一篇文章关于在 windows 上关于 using fastCGI to host php 

https://www.iis.net/learn/application-frameworks/install-and-configure-php-applications-on-iis/using-fastcgi-to-host-php-applications-on-iis-60

 

 

 

 

3. 安装完毕后,需要在 管理-服务和应用程序-Internet 信息服务(IIS)管理 中配置

如果没有 IIS 这项,需要开启 控制面板 - 程序和功能 - 打开或关闭Windows功能 - Internet 信息服务 - Web管理工具 - 

确定之后就可以在管理中 看到了。

安装之后,就有一个默认的网站,物理目录(这些配置在里面都能查到)

C:\inetpub\wwwroot

 

测试方法是:

在这个目录添加一个 phpinfo.php

 

   <?php

        phpinfo();

    ?>

然后访问

http://localhost/phpinfo.php

正常能出现

 

posted on 2023-06-01 16:48  zno2  阅读(33)  评论(0编辑  收藏  举报

导航