Description TODO: When PHP meets IIS

高洛峰
Release: 2023-03-06 14:58:02
Original
1682 people have browsed it

TODO: When PHP meets IIS

IIS calls PHP using the CGI function, so IIS must enable the CGI function. The default is to compile PHP to a C CGI program. This will set up 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 install You need to do special processing. Modify the MajorVersion in the registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters to be a DWORD value. Its value in decimal is 10. Change it to 9. After installing PHP Manager, change the value back. Xiao O successfully installed it under Windows 10.

Description TODO: When PHP meets IIS

Description TODO: When PHP meets IIS

For the sake of security, it is recommended to turn off the "Directory Browsing" function

Set the "Default Document", you can Add common index suffixes, such as php, html, htm, etc.

PHP Manager is mainly used to configure the PHP version and PHP extension functions, which is simple and convenient

Description TODO: When PHP meets IIS

If you have such a business environment, I hope it can inspire you. This article is just a record of Little O. Little O really doesn't like using IIS in the PHP production environment.

The above is the detailed content of Description TODO: When PHP meets IIS. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template