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

IIS 10 configures PHP running environment

angryTom
angryTom forward
2019-11-26 16:28:35 4467browse

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/

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

If it cannot be installed,Open the registry,win R Enterregidit

atHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStplocation

Modify the registry

and changeMajorVersion# The value of ## is changed to9

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!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete