IIS7 configuration PHP Diagram (iis7+php_5.2.17/php_5.3.5) _win server

Source: Internet
Author: User
Tags configuration php ini phpinfo

PHP5.2.17, PHP5.3.5 can be downloaded to the cloud habitat community.
First install good IIS7 installation should pay attention to three places to tick

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

ISAPI extensions and ISAPI filters in the iis7+php_5.2.17

The following starts adding PHP support for IIS

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 after the corresponding)

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

3. Modify PHP.ini Lookup Data.timezone Modify to Date.timezone = "Asia/shanghai" (this must be changed, or it will be a warning) 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 semicolon before you save it.

4. Add < Module mappings >

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

5. Create a new phpinfo.php text file in the site root directory:

<?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 are successful:

OK, now you can successfully run the PHP program.

iis7+php_5.2.17

The ISAPI extension and ISAPI filter have been selected before IIS was installed, and there is no need to add another role service to 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, with Notepad open to find Extension_dir = "./", and then put the inside of./change to c:\php (according to their actual situation to modify the path)

1. Add Application Pool

2. Add ISAPI and CGI restrictions

3. Add ISAPI Filter

4. Add script map

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

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.