Recently familiar with the Windows host Web environment, and today I encountered the IIS consolidated PHP 500 error problem, so the Internet to find a tutorial to solve the problem, and here to share with you.
1. To select the CGI script when installing IIS.
The procedure is:->turm Windows feature or not (Windows Central Administration)->role (role)->add role (Add roles)-> Select IIS through the Control Panel. The CGI entries in the World Wide Web under IIS are selected.
2, open "handler mapping"
The steps are: Open IIS, set up a virtual directory, and navigate to the Web site. Then click the Handlermaps->add module maps in the Features view panel to select the following in the module pool:
Request path:*.php//pointers to all PHP files
Module:fastcgimodule//Just choose it.
Executable:d:\php\php-cgi.exe//Depending on the actual path, select the type you want to select. ext to find this option
name:php via FastCGI//This name is arbitrary