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
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
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.