Home > Backend Development > PHP Tutorial > Windows2003+IIS7 Express uses FastCgi to run php_PHP tutorial

Windows2003+IIS7 Express uses FastCgi to run php_PHP tutorial

WBOY
Release: 2016-07-20 11:17:29
Original
810 people have browsed it

It is really difficult to run PHP well in Windows 2003 while saving memory. Considering that IIS7.5 Express can run on WIN2003, it not only supports PHP in the fastcgi method, but also comes with its own For the Rewrite component, you only need to simply change the rules of web.config.


So after downloading IIS7.5 Express and installing it, you also need to configure applicationHost.config. First, you have to find where this file is. If it can be found in the IIS7Express directory in "My Documents", then it is it, otherwise it should be In the installation directory of IIS7 Express.

1. First modify: defaultDocument section, add










2. Find the fastcgi section.







3. Find handles and join

One thing to pay special attention to is that it is best to add this sentence at the front, that is, the first sentence under , to avoid being processed by other Handles first.

In the above configuration, replace the part of C:phpphp-cgi.exe with the location of php-cgi.exe in your own php folder.

4. Under the configuration section, directly modify the site information, or directly use appcmd.exe add site to add the site.

5. Find the installation folder such as wordpress, create a web.config file, and add Gzip compression rules under the configuration section.


6. Also in web.config, the complete web.config file content of WordPress rewrite is as follows:



















This is completely configured. Then find IISExpress.exe in the IIS7 Express directory and double-click to run it, or use the command line to specify which site to load.
iisexpress.exe /site:'Site name 1"
iisexpress.exe /site:'Site name 2"
After visiting it, you will find that the access speed is much faster than using apache under Windows, and there is one less nginx to run, and the overall memory usage is much less.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/372037.htmlTechArticleIt is really difficult to run PHP well in Windows 2003 and save memory. Considering IIS7. 5 Express can run on WIN2003. It not only supports php in the fastcgi method, but also comes with R...
Related labels:
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