Windows IIS Configuration PHP Support

Source: Internet
Author: User
Tags configuration php

Windows IIS Configuration PHP Support

The default IIS does not support PHP and only supports ASP in MS Environment .... Wait, let's think of it as PHP support.

Installation of IIS

1: Control Panel-Features and programs-turn Windows features on or off-tick Internet Information services.

650) this.width=650; "class=" Media "src=" http://www.davis-wiki.com/lib/exe/fetch.php?media=all:iis_vs_php1.png "/ >

2:internet Information Service--web management tool--Tick the IIS Admin console.

650) this.width=650; "class=" Media "src=" http://www.davis-wiki.com/lib/exe/fetch.php?media=all:iis_vs_php2.png "/ >

3:internet Information Services-application development features-tick CGI.

650) this.width=650; "class=" Media "src=" http://www.davis-wiki.com/lib/exe/fetch.php?media=all:iis_vs_php3.png "/ >

PHP Configuration

1: Go to the official website to download PHP for WINDOWS. http://php.net/downloads.php

2: Unzip the php-xxx-cc.zip to the D drive and reset to PHP.

3: Install Visual C + + redistributable for visual Studio ...

Official download from Microsoft: http://www.microsoft.com/zh-CN/download/details.aspx?id=30679

3:d:/php/php.ini-development renamed to PHP.ini

4:d:/php/php.ini Configure the PHP time zone to Asia/shanghai.

650) this.width=650; "class=" Media "src=" http://www.davis-wiki.com/lib/exe/fetch.php?media=all:iis_vs_php4.png "/ >

Add PHP support in IIS7

1. Running--inetmgr

650) this.width=650; "class=" Media "src=" http://www.davis-wiki.com/lib/exe/fetch.php?media=all:iis_vs_php5.png "/ >

2: Handler Mappings

650) this.width=650; "class=" Media "src=" http://www.davis-wiki.com/lib/exe/fetch.php?media=all:iis_vs_php6.png "/ >

3: Add Module mappings

650) this.width=650; "class=" Media "src=" http://www.davis-wiki.com/lib/exe/fetch.php?media=all:iis_vs_php7.png "/ >

4: Fill in the following content

650) this.width=650; "class=" Media "src=" http://www.davis-wiki.com/lib/exe/fetch.php?media=all:iis_vs_php8.png "/ >

Setup is complete!

Test

1: Put the PHP Web file into the IIS Web site to access the directory. The default is C:\inetpub\wwwroot, and of course this directory can be changed by itself in IIS settings.

2: Open IE HTTP://ip/page name. php

650) this.width=650; "class=" Media "src=" http://www.davis-wiki.com/lib/exe/fetch.php?media=all:iis_vs_php9.png "/ >

Test success!


Bo Master personal website www.davis-wiki.com

Windows IIS Configuration PHP Support

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.