Since Microsoft has gradually started to focus on the application of PHP on Windows, has launched the Microsoft Web platform,php Manager and other IIS platform tools, x86 and x64 system can be used, and no longer have to configure PHP on IIS to worry, PHP The manager uses the following:
* Associating PHP and IIS
* Parallel running multiple PHP versions on the same server, even on the same site
* Check the PHP runtime configuration and environment (the output of the Phpinfo () function)
* Configure various PHP settings
* Enable or disable PHP extensions
* Remote Management php.ini PHP configuration file
So always want to experience the PHP for IIS7.5, below share under the WIN7 IIS7.5 application PHP Manager installation configuration PHP5 experience and feelings.
I used the Microsoft Web Platform installation PHP Manager and PHP on the win 2008 R2, beginning with the Microsoft Web Platform platform (or without installing the Microsoft Web Platform )。
Microsoft Web Platform is a platform for Microsoft's integrated development language and applications, with Microsoft Web Platform Installer can be installed to configure development platforms such as ASP.net, PHP, and corresponding WEB applications. The white dot is a bit like a software store.
1. Download Microsoft Web Platform 3.0 from Microsoft's official website and install (optional):
Official Download Address:
The default installation path is: C:\Program files\microsoft\web Platform Installer
2. Download or download the latest PHP Manager for IIS via Microsoft WEB platform Search and install:
Download Address: http://phpmanager.codeplex.com/releases/view/53121
3. Download or download the latest PHP via Microsoft Web Platform Search.
PHP official website Download Address:
Microsoft Official installs the PHP address through the Web installation platform:
Under Windows 2008 R2 IIS7.5 has greatly improved support for fastcgi, and the Windows version of the PHP 5.3 release already does not support ISAPI mode, because fastcgi greatly enhances the ability of IIS to handle PHP, Can quickly improve the PHP site's response speed and productivity, and has a higher stability and security, we do not recommend friends to use the PHP-ISAPI mode.
This environment to build all versions have been tested for a number of times to ensure that the correct! Given that many programs currently support php5.3.1, if not the old version, it is recommended to use php5.3 and above, such as PHP 5.5 is a good choice at the moment. Here's a sample of php5.2.17, with a larger version.
When you install the PHP version, you should consider the PHP program you use to support the PHP version.
windows2008 R2 under the environment built in two cases you can according to their own operation needs to choose!
1 Iis7.5+php+mysql+wincache 1.0RC
This environmental mix has been seen by people without Zend,
Each version is:
php5.2.11--Please note that the Non Thead safe) version of PHP 5.2.17 Non-thread-safe zip package,
MYSQL5.0 x64 (MySQL database most can use x64 bit, because the system is 64-bit),
Wincache1.1 for5.2, this everyone can go to Microsoft IIS official download, he will greatly improve the efficiency of your system!
Download Address: http://www.iis.net/downloads/microsoft/wincache-extension
If feel download trouble, can go to cloud Habitat Community download Wincache (Please note induced advertisement)
If your server is running open source programs, do not need to Zend, we strongly recommend that you use this configuration!
This combination version is
Note that PHP5.2.17 is thread safe (Thead safe) version: PHP 5.2.11 Zip Package
Xcache1.3 for Xcache-1.3.0-php-5.2.10-win32-vc6-x86.zip
This combination can perfectly run today's mainstream PHP system, but the drawback is that using PHP thread safe version can not load Wincache, unfortunately! But you can use XCache as a supplement, but it's much better than PHP-ISAPI mode!
The official website already indicated, the VC9 version is uses for the IIS, the VC6 version is uses for Apache. This distinction is made because the VC9 version is compiled with Visual Studio 2008, and the compiler optimizes the program for better performance. As for Thead safe (thread safety)/non Thead (not thread safety), the official website does not say what their purpose is. After Google, I found the answer: fastcgi is single-threaded, so no thread-safe version is needed, and thread-safe protection can improve execution efficiency, while ISAPI is multithreaded, and the thread-safe version is required.
PHP download is x86 version, and Win2008 R2 is a 64-bit system, should be used x64 version, but the official PHP does not provide x64 version, the use of the x86 version, no longer change. The VC9 version of PHP 5.3 requires the first installation of the VC2008 runtime (32-bit/64-bit).
A quick tutorial on installing PHP in fastcgi mode can be viewed here:
Windows 2008R2 has its own environment IIS7.5 has integrated the fastcgi module, so as long as the installation when the CGI module is selected, you can install the fastcgi.
4. Set up PHP Manager for IIS 1.2
Don't bother to grasp the map here, we can control their own system on it
Then select PHP Manager and click on "Register new PHP Version" to select your PHP extract directory
Unzip PHP to C packing directory.
Open IIS7 for PHP manager configuration
Click "Register New PHP Version" and browse to select "Php-cgi.exe" in the pop-up box.
A yellow warning appears, you can click "View Recommendations" to modify according to the recommended settings
Check phpinfo () tests the PHP support situation. Easy to view specific configuration information:
Workaround: Install the Visual C + + 2008 X64 Run-time Library
Note: Visual C + + 2008, select X86,x64 according to the operating system, different versions are not universal!!!
Setting up Error Reporting
Set PHP Run Restrictions
PHP Add-ins settings
Well, test it, create a new notepad that reads:
Copy Code code as follows:
Save As info.php, and then open its Web page file.
5. Install MySQL
Download the MySQL for Windows 5.1.57 x64 installation package, and configure it by following the Configuration Wizard when the installation is complete.
The Data folder to move the location, modify the following way:
1. Stop MySQL, in the command window to enter and run: net stop MySQL can;
2. Cut the Data folder in the "C:\programdata\MySQL\MySQL Server 5.1\data\" to the destination, which is set to D:\Mysql5.1\data
3. Modify the MySQL installation directory under the My.ini file, find one of the "datadir=" code, the DataDir to datadir= "D:\MySQL5.1\data\"
4. Start MySQL, enter and run in the command window: net start MySQL can;
6. Install Wincache
Microsoft has optimized PHP after launching Windows Server 2008, and has also released software that wincache to speed up PHP in Windows, with significant results. In some tests, Wincache scored better than Eaccelerator and XCache scores.
Wincache can be downloaded from Microsoft's official IIS website, and only support fastcgi run mode, Non Thread safe version of PHP.
Wincache Download Address: http://www.iis.net/download/WinCacheForPhp
The Wincache version of the tutorial in conjunction with FASTCGI mode is in the upper-right corner:
Installation Wincache: Click to download the exe file, point ' YES ', and then appear a path selection box, select Extract to your PHP installation directory under the Ext folder. For example: C:\Program files\php\ext
Then open the php.ini file, such as C:\Program Files\php\php.ini, and add a line at the bottom: extension = Php_wincache.dll
Restart IIS again.
The Wincache installation is successful and will be displayed on the Phpinfo page. The following figure:
1. Before installing PHP on Win 2008, you first need to install the configured IIS7.5 and install CGI on it, or it may cause the PHP installation to be unsuccessful.
2, in the choice of download PHP manager, PHP Manager has 32 and 64-bit two versions, win 2008 R2 system is 64, it is recommended to download 64-bit version.