时间: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
2023-03-17
Nginx主机域名配置实现2023-03-17
Nginx配置-日志格式配置方式2023-03-17
Apache APISIX Dashboard 未授权访问漏洞分析(CVE-2021-45232)正常项目无法访问(Linux 服务器),启动tomcat时卡在下图位置,项目无法启动。1、先检查tomcat日志、项目日志没有报错信息,且没再产生新的日志信息。2、jdk、tomcat 、 jvm 配置,服...
2023-03-15
这篇文章主要介绍了Kubernetes中Nginx服务启动失败排查流程(Error: ImagePullBackOff),本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以...
2023-03-15