IIS Configuration PHP Environment

Source: Internet
Author: User
Tags configuration php phpinfo

First install the IIS7 installation of the time to pay attention to three places to play a tick

Note: CGI will be used in iis7+php_5.3.5 environment.

ISAPI extensions and ISAPI filters are iis7+php_5.2.17

Start adding PHP support for IIS below

iis7+php_5.3.5

1. Extract the downloaded php_5.3.5 to the C:\php directory (also can be placed elsewhere, but should be modified later)

2. Rename Php.ini-development to PHP.ini

3. Modify PHP.ini Find Data.timezone Modify to Date.timezone = "Asia/shanghai" (must be changed here, or will warn) find Windows extensions to open the required modules, such as: PHP_CURL.D ll Php_mysql.dll Php_mysqli.dll Php_xmlrpc.dll php_curl.dll Just remove the front semicolon to save it.

4. Add < Module mappings >

The path here is filled out according to your actual situation.

5. Create a new phpinfo.php text file in the root directory of the Web site as follows:

<?php
Phpinfo ();
?>

6. Test, open the browser to see the results: localhost/phpinfo.php, if you can see a page similar to the following shows that you have succeeded:

Well, it is now possible to run the PHP program successfully.

iis7+php_5.2.17

The ISAPI extensions and ISAPI filters have been selected for the previous installation of IIS, so there is no need to add the role service and start directly

Modify the php.ini file first:

C:\php under the php.ini-dist (need to set the display extension) renamed to PHP.ini, open with Notepad to find Extension_dir = "./", and then put the inside./Change to c:\php (modify the path according to your actual situation)

1. Add an application pool

2. Add ISAPI and CGI restrictions

3. Add an ISAPI filter

4. Add a script map

5. Test (previously created phpinfo.php) Open localhost/phpinfo.php view effect as before:

IIS Configuration PHP Environment

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.