Configure PHP5.5 in IIS7

Source: Internet
Author: User
Environment: OS: Win7 (x64) Chinese professional PHP: V5.5 first add IIS. Control Panel-> Program-> enable or disable Windows function 1. Check

Environment: OS: Win7 (x64) Chinese professional PHP: V5.5 first add IIS. Control Panel-> Program-> enable or disable Windows function 1. Check

Environment:

Operating System: Win7 (x64) Chinese Professional Edition

PHP: V5.5

Add IIS first.

Control Panel-> Program-> enable or disable Windows

1. Check "Internet Information Service"

2. Check "IIS console"

Internet Information Service-> Web management tools

3. Check "CGI"

Internet Information Service-> Application Development Function

IIS automatically creates the inetpub folder on drive C. Its Sub-Folder wwwroot is the directory where the webpage files are stored.

Then, decompress PHP and set it.

1. decompress the file

Decompress php-5.3-nts-win32-vc11-x64.zip to drive D and rename it to php-5.5.3

2. Install Visual C ++ Redistributable for Visual Studio 2012 (x64)

From Microsoft official download: http://www.microsoft.com/zh-CN/download/details.aspx? Id = 30679

3. Configuration File

Rename php. ini-development to php. ini.

(1) set the time zone

Finally, add php support in IIS7.

1. Run-> inetmgr

2. Add "module ing"

(1) Select "handler ing"

(2) Go to "add module ing"

Enter the following content

(3) The settings are complete.

Test,

Create a new file (test. php) and place it in the website root directory (wwwroot ).

The file content is as follows:

 

The running effect is as follows:

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.