TODO: When PHP meets IIS

TODO: When PHP meets IIS

IIS calls PHP to use the CGI function, so IIS must enable the CGI function. The default is to compile PHP to a C CGI program. This will build a command line interpreter that can be used 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 of the system is greater than 7. Then, special processing must be done to install it. Modify the registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC The MajorVersion of \Parameters is a DWORD value, its value in decimal is 10, change it to 9; after installing PHP Manager, change the value back. Xiao O was successfully installed under Windows 10.

TODO: When PHP meets IIS

TODO: When PHP meets IIS

For security reasons, it is recommended to turn off the "directory browsing" function

Set "default document", you can add common index suffix, such as php, html, htm, etc.

PHP Manager is mainly used to configure the version of PHP, the extension function of PHP, simple and convenient

TODO: When PHP meets IIS

If you have such a business environment, I hope to inspire you. This article is just a record of Xiao O. Little O is very disliked using IIS in a PHP production environment.

wxgzh: ludong86

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326351934&siteId=291194637