Windows 7 IIS opens with PHP+MYSQL support configuration

  
        

This article introduces the IIS startup and configuration method on Windows 7, and of course it is also suitable for Windows Vista/Server 2008, but it is still very different from the Windows Server 2003 setting method, because IIS 7 changes too much, too Complexity is too much trouble, it is simple to open IIS, other configurations are not easy.

First, open Windows 7 IIS function

Click: Start menu ——Control panel——Program——Open and close Windows function, as shown below:

Select "Web Core" that can be hosted by Internet Information Service, and "Internet Information Service", Internet Information Service includes FTP server, web management and web services, pay attention to view customization, other For example, NFS service and Telnet confirm whether to choose according to your needs. If you need ASP, PHP support, you also need to select the ASP extension and ISAPI extensions and ISAP filters under the common application development features of the "World Wide Web Service".

After the setup is complete, click OK to wait for the completion.

Second, open IIS Management

Open: Control Panel\\System and Security\\Administrative Tools\\Internet Information Services (IIS) Manager.

1, Windows 7 IIS Manager interface

It’s complicated enough, it doesn’t take much to use, but Microsoft always designs too many shortcut links, which leads to the whole The window looks messy, and many navigation operations are not necessary at all. Instead, it will cause a lot of interference to the user and it will take a long time to adapt.

Basic configuration features include:

  • Edit web directory permissions
  • Bind domain names and IP addresses
  • Start, stop and advanced Settings (manually edit some configuration parameters)
  • FTP Publishing
  • The middle part of the illustration (HTTP header, MIME type, SSL settings, website content compression, program mapping, logs and modules, directory cache) , default page, etc.)
  • The right side of the action bar, except for a "basic configuration", a little quick effect, other people can not look, or the left side control is clear.

    These functional modules need to be opened and looked at, and they have to adapt to this decentralized configuration for a while. The specific configuration method, Tianyuan will be distributed to other blog posts, and will be searched according to the actual configuration content.

    2, test the default website

    After starting the website, enter the localhost test results:

    Third, let IIS support PHP+MYSQL parsing

    If you need to parse the PHP format web page, you also need to install PHP and MYSQL.

    1. Installation and configuration PHP

    Download address: windows.php.net/download/" target="_blank">http://windows.php.net/download/
    Installation steps are similar to those in 2003:

  • Install PHP or directly use PHP format to extract PHP to a directory. After installation, put libmysql.dll in php directory to system disk Windows\\System32
  • Add filter (php5isap.dll)
  • Handler mapping
  • Add application pool
  • Add default document, such as index.php
  • Check if PHP.INI has some necessary support, such as MYSQL, extension, wide characters, etc.

    Please refer to http://www.2cto.com/os/201109/105590.html for specific settings. He wrote very well and will not repeat it here.

    2, install MYSQL

    MYSQL download address: http://www.mysql.com/downloads/

    After downloading mysql, you can install it directly.

    3, restart IIS

    PS: If you just use PHP+MYSQL, or install APACHE, IIS is too arrogant

    Excerpt from: Tianyuan original Blog



  • Copyright © Windows knowledge All Rights Reserved