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
3. Process mapping
4. 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 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: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!