Windows Server R2 iis7.5+php5 (FastCGI) +MYSQL5 Environment Building Tutorial

Source: Internet
Author: User
Tags mysql version vc9 dedicated server

Prepare the article

First, environmental description:

Operating system: Windows Server R2

PHP Version: PHP 5.4.4

MySQL version: MySQL5.5.25

Second, related software download:

1. PHP:

Http://windows.php.net/downloads/releases/php-5.4.4-nts-Win32-VC9-x86.zip

2. MySQL:

Http://gd.tuwien.ac.at/db/mysql/Downloads/MySQLInstaller/mysql-installer-5.5.25.0.msi

3, PHP acceleration software zendguard:

Http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-Windows.zip

4. Microsoft. NET Framework 4 (Standalone installer):

Http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe

5. Microsoft Visual C + + 2010 Redistributable Package (x64):

Http://download.microsoft.com/download/3/2/2/3224B87F-CFA0-4E70-BDA3-3DE650EFEBA5/vcredist_x64.exe

6. Microsoft Visual C + + Redistributable Package (x86):

Http://download.microsoft.com/download/7/5/0/7502f4e9-1f90-4895-9259-1bde67b8b9a1/vcredist_x86.exe

Installation article

First, install the IIS7.5

Start-Administration Tools-Server Manager

System operation and maintenance www.osyunwei.com warm reminder: qihang01 original Content © Copyright, reproduced please indicate the source and the original link

Select Add roles to the right of the roles point

Next

Select Web Server (IIS), Next

Next

Make sure "CGI" is selected, and other role services can be selected according to their needs

It's all checked out here.

Next

Installation

is installing

Close, open http://localhost/inside the browser

The following interface appears

IIS7.5 Installation Complete

Ii. Installing the Microsoft Visual C + + 2010 Redistributable Package (x64)

Double hit Open Vcredist_x64.exe

Select I have read and accept the license terms, click Install

is installing

Complete

Iii. installing the Microsoft. NET Framework 4 (Standalone installer)

Double-click Dotnetfx40_full_x86_x64.exe

Select I have read and accept the license terms, click Install

is installing

Click Finish, installation is complete.

Iv. installation of MySQL

Double hit Open mysql-installer-5.5.25.0

Select the first item installed MySQL products (install MySQL)

Select "I accept the License Terms" (I agree to the license terms), click Next

Check "Skip the check for update (not recommended)" (Skip checking for updates), click Next

Select Custom installation, installation path (installation path): D:\Program files\mysql

Next

Make sure "MySQL Server5.5.25" is selected, click Next (Other components can be installed)

All selected here to install all components

Execute (EXECUTE)

Select I have read and accept the license terms

Point installation

Complete

Next

Execute (EXECUTE)

Next

System operation and maintenance www.osyunwei.com warm reminder: qihang01 original Content © Copyright, reproduced please indicate the source and the original link

Next

Developer Machine (Development server)

Server machine (normal server)

Dedicated machine (dedicated server)

Select the second item here: Server machine (normal server)

Click Next

Tick "Enable TCP/IP Networking" (Turn on TCP network port)

Port number (ports): 3306

Tick "Create Windows Service" (Creating Windows System Services)

Windows Server name (Windows service name): MySQL55

MySQL Root Password: enter password

Repeat Password: Enter password repeatedly

After setting up, click Next

Next

Next

Dot Finish (complete)

Close this window

Open MySQL Installation path

D:\Program Files\mysql\mysql Server 5.5

Copy My-huge.ini to My.ini

Backup My-huge.ini to My-huge.ini_bak

Start-All Programs-mysql-mysql Server 5.5-mysql Server 5.5 Command line Client

Enter the MySQL root account password at the time of installation, enter

Login is successful, MySQL installation is complete.

V. Installation of the Microsoft Visual C + + Redistributable Package (x86)

Double hit Open Vcredist_x86.exe

Next

Tick "I have read and accept the license terms"

Point installation

Complete

Vi. Installation of PHP

Unzip the Php-5.4.4-nts-win32-vc9-x86.zip file

Rename the folder to PHP, copy the PHP folder to the D packing directory

Decompression Zendguardloader-php-5.3-windows.zip

Open it

D:\soft\ZendGuardLoader-php-5.3-Windows\ZendGuardLoader-php-5.3-Windows\php-5.3.x

Copy the ZendLoader.dll file into the D:\php\ext directory

Open D:\php

Copy Php.ini-development to PHP.ini

Open php.ini with Notepad

Make the following changes:

Extension_dir = "D:\php\ext" #设置php模块路径

Date.timezone = PRC #设置时区为中国时区

Register_globals = on #开启GET数据调用

Short_open_tag = on #php支持短标签

Cgi.force_redirect = 0 #开启以CGI方式运行php

Fastcgi.impersonate = 1;

Cgi.rfc2616_headers = 1

The following PHP extension module, select on as required, cancel the preceding semicolon to start the corresponding extension module

Extension=php_curl.dll

Extension=php_gd2.dll

Extension=php_mbstring.dll

Extension=php_exif.dll

Extension=php_mysql.dll

Extension=php_mysqli.dll

Extension=php_sockets.dll

Extension=php_xmlrpc.dll

Extension=php_pdo_mysql.dll

Add the following code on the last line

[Zendguardloader]

Zend_loader.enable=1

Zend_loader.disable_licensing=1

Zend_loader.obfuscation_level_support=3

Zend_loader.license_path=

zend_extension= "D:\php\ext\ZendLoader.dll"

System operation and maintenance www.osyunwei.com warm reminder: qihang01 original Content © Copyright, reproduced please indicate the source and the original link

Finally, save the exit

Vii. Configuring IIS to support PHP

Start-Administrative Tools-Internet Information Services (IIS) Manager

Double-click the computer name under "Start Page" on the Left

Locate the middle IIS section and open the handler mappings

Add module map to the right of the point

Request Path: *.php

Module: Fastcgimodule

Executable file (optional): D:\php\php-cgi.exe

Name: FastCGI

Finally, determine

Point "yes"

Double-click the computer name under "Start Page" on the Left

Locate the middle IIS section and open the "FastCGI settings"

Right-click to select: D:\php\php-cgi.exe and select Edit

To monitor changes made to a file: D:\php\php.ini

environment variable, "..." next to the dot

Point "Add"

Name:php_fcgi_max_requests

value:10000

Are you sure

Are you sure

Test article

Open it:

C:\inetpub\wwwroot

Create a new index.php file

The contents are as follows:

<?php

Phpinfo ();

?>

Finally, save the exit

Open http://localhost/inside the browser

The following interface appears, indicating that the configuration was successful!

At this point, the Windows Server R2 iis7.5+php5 (FastCGI) +MYSQL5 Environment Setup Tutorial is complete.

» This article link: http://www.osyunwei.com/archives/4525.html» subscribe to this site: http://www.osyunwei.com/feed» reprint Please specify the Source: System operation and Maintenance»windows Server R2 iis7.5+php5 (FastCGI) +MYSQL5 Environment Building Tutorial

Windows Server R2 iis7.5+php5 (FastCGI) +MYSQL5 Environment Building Tutorial

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.