I've used WEBPI to install PHP 7.1 on IIS 10 in an attempt to develop PHP on a local machine. I get this error when navigating to a .php file:
HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
CGI is activated
ASP.NET is installed
The handler is mapped in FASTCGI (C:\\Program Files\\PHP\\v7.1\\php-cgi.exe) in the IIS Manager
HTTP Activation is ON
aspnet_regiis.exe -ir has been run
Why aren't PHP file extensions being recognized?
Have you checked your handler mappings? It should contain a mapper of FastCGI to php files. Fixed the error in my case.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.