This article explains TODO: when PHP encounters IIS
IIS uses CGI to call PHP. Therefore, IIS must enable CGI. By default, PHP is compiled into a c cgi program. This creates a command line interpreter for CGI processing or non-web-related PHP scripts.
Enable "MIME type" configuration
Install "PHP Manager". Currently, PHP Manager only supports IIS7. after Windows 8, the default IIS version is later than 7. to install PHP Manager, perform special operations, modify the MajorVersion of the registry HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ W3SVC \ Parameters to the DWORD value, which is 10 in decimal format, and change it to 9. install PHP Manager, changing the value back. Xiao O is successfully installed in Windows 10.
If you have such a business environment, hope to inspire you. This is only a record of Xiao O. Xiao O does not like the use of IIS in the PHP production environment.
The above is the description of TODO: when PHP encounters IIS details, please pay attention to other related articles in the first PHP community!