Win2008 R2 is configured with IIS7.5 +PHP Manager+ PHP5.3 + Mysql5.5 +Wincache

  • 2020-05-13 03:57:47
  • OfStack

I have long heard that the latest Windows Server 2008 + IIS PHP is not much worse than Linux, and Microsoft has partnered with ZEND to launch FastCGI support specifically for IIS, and integrated FastCGI into IIS after IIS 7.0, and PHP Manager, PHP's configuration tool PHP Manager, so it is very easy to configure PHP under server 2008. In addition, Microsoft also launched WinCache, which is very good for PHP acceleration.

Step 1: download all the programs you need to set up your environment.

(1.1) PHP download address:

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

Please download version 5.3, I originally downloaded PHP 5.4.3 for the first time, but later when I downloaded Wincache, I found that it only supported version php 5.3, so please download version 5.3.

There are two versions of Non Thread Safe and Thread Safe. If you want to run PHP in FastCGI mode, choose Non Thread Safe version. If you want to run PHP in ISAPI mode, choose Thread Safe version. Officials recommend it, too.

(1.2) Mysql download address:

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

The version I downloaded is MySQL Community Server 5.5.24, because Microsoft has not supported 32-bit r2 since 2008, and the system version since r2 has been 64-bit, so we downloaded 64-bit Mysql.

(1.3) PHP Manager 1.2 for IIS 7-x64

This site software: / / www. ofstack. com softs / 41246. html

Because the official download there can not, so on the Internet search 1 download.
Official address is: http: / / phpmanager codeplex. com/releases /

(1.4) Wincache download address:

The official download address: http: / / www iis. net/download/WinCacheForPhp
This software download site: / / www ofstack. com softs / 100213. html

Select the download version of WinCache 1.1 for PHP 5.3-x86 on the right.

(1.5) additional downloads required:

Since PHP5.3 is compiled by VC9, and 2008 r2 itself does not have VC runtime, we need to download and install 1 separately. The download address is:

Microsoft's official download: http: / / www microsoft. com/en - us/download/details aspx & # 63; id = 2092
This software download site: / / www ofstack. com softs / 72977. html
Step 2: start the installation program.

(2.1) installation of IIS7.5:

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

Next to the lower left corner of the system is a server administration - role management - add roles - web server (iis) - next step, the things inside are selected according to your own needs, but CGI must be selected.

(2.2) installation of Mysql:

I can not write a tutorial here, specific installation MYSQL graphic tutorials can read here: / / www ofstack. com article / 23876 htm, actually you also will be installed, just lazy, ha ha.

(2.3) install VC9 runtime:

Just open the installation file and go to the next step.

(2.4) installation of PHP5.3:

I will unpack the PHP package directly into the C or D disk. The path is :D:\php5. Rename the php.ini-recommended in the directory to php.ini.

(2.5) installation of Wincache:

Open the downloaded file, then it prompts to unzip the directory, we select the desktop, then go to the unzip file directory and copy wincache.dll to D:\php5\ext, wincache.php in the directory is to monitor the working state of wincache, 1 generally do not need it, let's ignore it.

After unzip, copy php_wincache.dll to the ext directory in the php installation directory
For example, "C: \ PHP \ ext".
Open php.ini file "C:\windows\ php.ini ".

extension = php_wincache.dll
(2.5) installation of PHP Manager:

Go to the installation file 1 and go down 1 step. Then open IIS and select the default site. The option PHP Manager appears on the right. Double-click to open it.

Click "Register new PHP version" to add PHP: D:\php5\ php-cgi.exe.

Click "Manage all settings" to manage the Settings of php.ini can change the default upload file size and so on, depending on your needs.

Click "Enable or disable an extension" to open the php extension you need, right click and select enabled is on, disabled is off, then click the ADD on the right to add wincache. We copy wincache. dll to D:\php5\ext, so we can select it to confirm.

Step 3: test the installation for success.

Below the IIS default site we create an PHP file that says: < ?php phpinfo() ? > Then see if under 1 can normal open, and, according to the below have wincache here recommend black PHP probe, download address: / / www ofstack. com codes / 35495. html.

So that's the end of it, because of time, it's easy to write, but you can read it if you look at it carefully.


Related articles: