Install iis7 in windows to configure the php environment graphic tutorial

Source: Internet
Author: User

Many server administrators need to re-configure the php environment in the iis7 environment. Today, let's take a look at how to quickly implement iis7 configuration and re-configure the php environment in the iis7 environment using text formats, let your iis also support php programs. PHP5.2.17 official download: http://windows.php.net/downloads/releases/php-5.2.17-Win32-VC6-x86.zipPHP5.3.5 official download: http://windows.php.net/downloads/releases/php-5.3.5-win32-vc9-x86.zipfirst install iis7 when you need to pay attention to the three places played hook note: CGI will use ISAPI extension and ISAPI filter in IIS7 + PHP_5.3.5 environment to add iis php support under IIS7 + PHP_5.2.17.IIS7 + PHP_5.3.51. decompress the downloaded php_5.3.5 to the C: php Directory (you can also store it elsewhere, but modify it later. set php. ini-development is renamed as php. ini3. modify php. search for data in ini. change timezone to date. timezone = "Asia/Shanghai" (This must be changed here, otherwise a warning will be issued) Find the Windows Extensions to enable the required modules, such: php_curl.dll php_mysql.dll php_mysqli.dll php_xmlrpc.dll php_curl.dll can be saved by removing the semicolon. add <module ing> the path here is based on your actual situation. 5. create a phpinfo file in the root directory of the website. php text file content: <? Php
Phpinfo ();
?> 6. test. Open the browser and check the result: localhost/phpinfo. php, if you can see a page similar to the following, it indicates that you have succeeded: Well, now you can successfully run the PHP program.IIS7 + PHP_5.2.17The isapi extension and isapi filtering have been selected before IIS installation. You do not need to add a role service here. You can directly modify php first. INI file .. put php under c: php. ini-dist (the display extension must be set first) and renamed to php. ini, open it in notepad and find extension_dir = ". /", and then put. /change to c: php (modify the path according to your actual situation) 1. add application pool 2. add isapi and cgi restrictions 3. add isapi filter 4. add script ing 5. test (phpinfo has been created before. php) Open localhost/phpinfo as before. php viewing results:

Related Article

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.