IIS7 (WINDOWS7) The simplest and strongest installation of a multi-version PHP support environment
source from: http://www.myhack58.com/Article/sort099/sort0100/2012/35593.htm
Recently debug program, want to exchange between PHP5.2 and 5.3, and accustomed to the development under windows, wondering how to install multi-version support under IIS, impressively found that Microsoft has prepared a good tool for us.
Microsoft's support for PHP is increasingly strong, this is evident in IIS7, not only fastcgi support, but also for the management of PHP specifically added a PHP manager. With this stuff, installing PHP based on IIS7 in a Windows environment is a breeze.
Although PHP5.3 has been out for a long time now, many open-source PHP programs are not well-supported or PHP5.2-mainstream. With the good stuff of PHP manager, it's also easy to install multiple versions of PHP under IIS.
The steps are as follows:
1. Download the PHP managerhttp://phpmanager.codeplex.com/releases/view/69115 on the Microsoft website and double-click Install. In this case, there will be one more PHP Manager management option in the IIS Admin interface.
2. Download the Windows version of the PHP program from the PHP official website. Because it runs in fastcgi mode, the newest 5.2.17 and 5.3.8 choose to download the zip version of NTS (non-thread safe). After downloading, find a place to decompress separately, for example, under the 5.2 and 5.3 directories under C:\PHP.
3. Go to the IIS Admin interface, double-click PHP Manager, select Register New PHP version, this is a pop-up box, select the 5.2 version of the Php-cgi.exe file, confirm. Then click Register New PHP version, select the 5.3 version of the Php-cgi.exe file under the directory, confirmed, the multi-version of the environment is ready. It's simple.
To use that PHP version, click Change PHP versions to select the desired version. To verify that it is set up, you can also click the Check Phpinfo () next to it to see the appropriate PHP setup information.
4. PHP Manager in the PHP setup also simplifies a lot, can be in PHP setting and PHP Extension directly visual management php.ini, and view the corresponding IIS configuration, will find PHP The manager has generated the corresponding mapping for us, it is really convenient to get home.
IIS7 (WINDOWS7) The simplest and strongest installation of a multi-version PHP support environment