Win2008 R2 configuration iis7.5+php manager+php5.3+mysql5.5+wincache_win Server

Source: Internet
Author: User
Tags mysql download mysql tutorial php download vc runtime vc9

I've heard that the latest Windows Server 2008+iis PHP is not much worse than Linux, and Microsoft has been working with Zend to launch fastcgi support specifically for IIS. And after IIS7.0 to integrate fastcgi in IIS, as well as PHP configuration tools PHP Manager, so the 2008 server to configure PHP is very simple, in addition to Microsoft also launched a PHP accelerated software Wincache, The effect is still very good.

The first step: Download all the procedures to build the environment.

(1.1) PHP download Address:

http://windows.php.net/download/

Please download the 5.3 version, originally I downloaded the PHP5.4.3, but later download Wincache found that it only supports the php5.3 version, so please download 5.3 version.

Download there is divided into non thread safe and thread safe two versions, if you want to run PHP in fastcgi mode, select non thread safe version, if you want to run PHP in ISAPI mode, select the thread safe version, Because we are running PHP using the fastcgi mode, we chose the version that is not secure (Non Thread safe) VC9 compiled, which is also recommended by the authorities.

(1.2) MySQL download address:

http://dev.mysql.com/downloads/mysql/

I downloaded the version is the MySQL Community Server 5.5.24, because Microsoft from 2008 R2 began to not support 32-bit, from the beginning of the R2 system version is 64, so we download 64-bit MySQL.

(1.3) PHP Manager 1.2 for IIS 7-x64 download Address:

Cloud-dwelling community software: http://www.jb51.net/softs/41246.html

Because the official there can not download, so on the internet to search for a download.
The official address is: http://phpmanager.codeplex.com/releases/

(1.4) Wincache Download Address:

Official Download Address: HTTP://WWW.IIS.NET/DOWNLOAD/WINCACHEFORPHP
Cloud-dwelling community software download: http://www.jb51.net/softs/100213.html

In the right place select Wincache 1.1 for PHP 5.3-x86 version download.

(1.5) Additional downloads are required:

Because PHP5.3 is VC9 compiled, and 2008 R2 itself does not have the VC runtime, so we have to download the installation of a separate, download the address is:

Microsoft Official Download: http://www.microsoft.com/en-us/download/details.aspx?id=2092
Cloud-dwelling community software download: http://www.jb51.net/softs/72977.html
Step Two: Start the installer.

(2.1) Installation IIS7.5:

The IIS Installer for Windows Server 2008 R2 is integrated into the operating system and does not require additional download of the installation package.

There is a server management-role management-Add Role-web Server (IIS) next to the lower left corner of the system-the next step is to choose what you want, but the CGI must be selected.

(2.2) Install MySQL:

Here I will not write a tutorial, you can read here to install the graphics and text of MySQL Tutorial: http://www.jb51.net/article/23876.htm, in fact, we will be installed, but more lazy, haha.

(2.3) Install the VC9 Run Library:

Open the installation file directly the next step is OK.

(2.4) Installation PHP5.3:

The download to the PHP compression package directly to the C or D disk, I am here on the decompression in D disk, the path is: D:\PHP5, the directory php.ini-recommended renamed to PHP.ini, other temporarily do not change, the following use of PHP Manager change is OK.

(2.5) Installation Wincache:

Open the downloaded file, and then it prompts to extract the directory, we choose the desktop, and then into the decompression file directory to wincache.dll this file copied to the D:\php5\ext below, In addition, the wincache.php in the catalogue is to monitor the working state of Wincache, generally do not need it, aside.

After decompression, copy the Php_wincache.dll to the Ext directory of the PHP installation directory
For example, "C:\PHP\ext".
Open the php.ini file "C:\windows\php.ini".

Extension = Php_wincache.dll
(2.5) Install PHP Manager:

The next step is to execute the installation file, then turn on IIS to select the default site, and the right side of the PHP manager option appears, double-click to open it.

Click on "Register new PHP Version" to add the PHP path: D:\php5\php-cgi.exe.

Click on the "Manage all settings" admin php.ini setting, where you can change the default upload file size or whatever, set according to your needs.

Click "Enable or disable an extension" to open the PHP extension you need, right-click to select, Enabled is open, disabled is off, and then click on the right side of the add to Wincache added, We copied the wincache.dll to the bottom of the D:\php5\ext, so we picked it up and decided on it.

Step three: Test whether the installation was successful.

In the IIS default site, we create a PHP file, which is written on: <?php phpinfo ()?> and then see if the normal open, and there is no wincache that display, here recommend ya black php probe, download address: http:// Www.jb51.net/codes/35495.html.

This is the end, due to the time reason, write a relatively simple, but as long as we look carefully can see the OH.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.