Home > Topics > IIS > IIS 10 configures PHP running environment

IIS 10 configures PHP running environment

angryTom
Release: 2019-11-26 16:28:35
forward
4657 people have browsed it

IIS 10 configures PHP running environment

IIS 10 configuration PHP running environment

1. Download php for windows and extract it to the specified directory

https://windows.php.net/download/
Copy after login

2. Install iis and check CGI

IIS 10 configures PHP running environment

3. Process mapping

IIS 10 configures PHP running environment4. Add a test site to test whether PHP is supported

5. IIS url rewrite(Big Pit)

1 , I found that IIS 10 has its own rewrite module, added the LARAVEL project, and configured the rewrite rule to always be 404. The web.config that comes with laravel is still 404. Writing a simple redirect by yourself will still result in 404. URL rewriting keeps failing. I suspect there is a problem with the built-in URL rewrite module

2. Delete the built-in URL rewrite and re-download it

https://www.iis.net/downloads/microsoft/url-rewrite
Copy after login

If it cannot be installed,Open the registry,win R Enter regidit

at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStplocation

Modify the registry

and change MajorVersion# The value of ## is changed to 9

After the installation is successful, rewriting is also OK

Recommended learning:

PHP video tutorial

The above is the detailed content of IIS 10 configures PHP running environment. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template