How to deploy PHP on IIS8.5

Source: Internet
Author: User
Tags configuration php phpinfo

First, turn on, set the IIS 8.5 component server that win8.1 comes with.

    1. Go to the Control Panel, select programs and features, turn Windows features on or off, find Internet informationServices, turn on the FTP server, Web management tools, and the World Wide Web services component, respectively. The sub-components of the World Wide Web service are also turned on, "the most important of which is to turn on application development features," as shown in.
    2. Restart for automatic feature configuration after installation is complete
    3. Open http://localhost or HTTP://127.0.0.1/in your browser to see if you can display the Welcome page for IIS8.5 in the multi-lingual language:
    4. Attach a bit, some people may appear 503, this simple, I will have a chapter blog to introduce this thing
    5. Second, download the installation configuration PHP environment
    6. Small series downloaded is VC11 x64 Thread Safe version of the compressed package (php-5.5.4-win32-vc11-x64), 1, unzip it into the d:\php directory (other drive characters can also).

      Select services and applications on the left to access Internet Information Services (IIS) Manager

      3, select "Handler mapping" under IIS function double-click Enter, then the rightmost select "Add Module map" in the request path input "*.php", module select fastcgimodule mode, executable file, file format can choose EXE program and select path: d:\php\ Php-cgi.exe, name such as PHP, finally determine the Add module mapping.

    7. Then manually add the default document to the site: default.php and index.php two documents.
    8. Continue with the following configuration for the PHP package: Enter the d:\php directory, rename the file php.ini-development rename to php.ini.
    9. Using Notepad to open the edit php.ini file, use the shortcut key Ctrl+f Quick Search positioning, the related Date.timezone modified to date.timezone= "Asia/shanghai" that is, modify the current system time zone, while the previous semicolon ";" Delete takes effect.
    10. Down to modify these places

      ; Extension=php_gd2.dll changed to Extension=php_gd2.dll
      ; Extension=php_mbstring.dll changed to Extension=php_mbstring.dll
      ; Extension=php_mysql.dll changed to Extension=php_mysql.dll
      ; Extension=php_mysqli.dll changed to Extension=php_mysqli.dll
      ; Extension=php_pdo_mysql.dll changed to Extension=php_pdo_mysql.dll

    11. Then search for Extension_dir, modify the path to Extension_dir = "d:\php\ext\", while the preceding semicolon ";" Delete takes effect. , save after modification, then copy the php.ini file to the C:\Windows root directory.
    12. ; The directory under which PHP opens the script using/~username used only
      ; If nonempty.
      ; Http://php.net/user-dir
      User_dir =

      ; Directory in which the loadable Extensions (modules) reside.
      ; Http://php.net/extension-dir
      Extension_dir = "D:\php\ext"
      ; On Windows:
      Extension_dir = "D:\php\ext"

    13. PHP environment configuration, now need to test, in the establishment of the Site Directory wwwroot folder "C:\inetpub\wwwroot" Create a new phpinfo.php Web page file.
    14. The contents are:

      <?php

      Phpinfo ();

      ?>

    15. Then open the http://localhost/phpinfo.php in IE browser, you can appear similar to the following interface, that is, the successful effect.

How to deploy PHP on IIS8.5

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.