时间:2022-03-02来源:www.pcxitongcheng.com作者:电脑系统城
序:此前是一直部署的都是 liunx 的 CentOS 操作系统的,突然,接到一个是Windows的系统的服务器,把我整不会了,嘎,嘎...,差点就芭比Q了,看了大量文章,好吧,自己动手;
1、下载PHP,下载地址:windows.php.net - /downloads/releases/

2、安装包拷贝到到新建的php文件夹下并解压,复制一份php.ini-development 文件命名为php.ini

3、打开服务器管理,可以看到我已经下载了IIS,不过还可以在添加角色和功能 下安装其他需要的功能


一步步走,选择需要的功能;进入站点程序配置

选着配置,添加php模块映射,在默认文档里添加 index.php 放在第一位;


4、请求路径和模块都是像以下一样的,执行文件按你安装的目录来,名称自定义

然后在的访问的public下有一个web.configd的文件,这个是设置伪静态的,内容为:
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<?xml version="1.0" encoding="UTF-8"?><configuration> <system.webServer> <rewrite> <rules> <rule name="OrgPage" stopProcessing="true"> <match url="^(.*)$" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" pattern="^(.*)$" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php/{R:1}" /> </rule> </rules> </rewrite> <defaultDocument> <files> <add value="index.php" /> </files> </defaultDocument> </system.webServer></configuration> |
5、点击网站下的网站目录,右侧有个浏览网站的 浏览 *.80(http) ,可以访问你的站点;
右侧这里可以配置修改你的网站目录、名称等等;
报错:vcruntime140.dll丢失的解决方法;
下载安装(下载后直接运行就可以):Download Visual C++ Redistributable for Visual Studio 2015 from Official Microsoft Download Center

2024-07-07
myeclipse怎么导入tomcat教程2024-07-07
myeclipse如何启动tomcat2024-07-07
myeclipse如何绑定tomcat上线了一个小的预约程序,配置通过Nginx进行访问入口,默认的日志是没有请求时间的,因此需要配置一下,将每一次的请求的访问响应时间记录出来,备查与优化使用....
2023-03-17