WIN10 installation Configuration IIS + MySQL + Nginx + php7.1.7 method

Source: Internet
Author: User
Tags php download
This article to share is in the WIN10 system, installation configuration IIS + MySQL5.7.19 + nginx1.12.1 + php7.1.7 Detailed tutorials, very practical, the need for small partners can refer to the following

Environment:

VMWare Workstation Player12

WINDOWS10 Pro x64

First, the installation system

VMware will be installed quickly with fast install, without having to configure anything.

Second, configure IIS

Under Programs and features, turn on enable or disable Windows features. To add the Internet infomation Services feature, it is important to note that the CGI in "Application development features" is unchecked and needs to be selected manually

Note: In the actual installation, IIS I was the last to add, but written in the front, there is no special meaning. However, the binding port for IIS is changed.

About the port: after installation, because 80 is accounted for, click on the "Default Web Site" to the right of the "binding", modify the port number to "any", such as 8800, later access time with "localhost:8800" way access.

About Virtual Directories: If you need a virtual directory, you can increase it. Add this to access the "localhost:8800/virtual directory Name/page", such as localhost:8800/myweb/phpinfo.php.

About fastcgi: Select Default Web Site, click handler mappings inside the Ribbon, and add module mappings.

In the site default/specified path, put a content of <?php phpinfo ();?> file, can be named phpinfo.php. Start or restart the IIS service, default path input localhost:8800/phpinfo.php, specify path (if placed in virtual directory) Enter localhost:8800/virtual directory alias/phpinfo.php, display as IIS + PHP combination succeeded

Third, compile and install MySQL

Download the zip form of MySQL server, unzip to the full English path (Chinese not try to avoid trouble). Add environment variable, system variable path to add MySQL paths

Create a new configuration file in the MySQL root directory named My.ini, which reads as follows

[Client]port=3306default-character-set=utf8[mysqld]port=3306character_set_server=utf8#mysql's installation/decompression directory Basedir=c:\ Data Catalog of Dev\mysql57#mysql Datadir=c:\dev\mysql57\data Sql_mode=no_engine_substitution,strict_trans_tables

Since the configuration, Basedir and DataDir can be specified according to their requirements, as long as the configuration file is written correctly. I specify DataDir as the Basedir path, and the data folder does not exist when decompressed, so create one manually. When finished, the directory structure is as

Open the CMD command-line tool to run as Administrator

Run command: cd .... Switch to the MySQL root directory

To run the command:mysqld --initialize --user=mysql --console

The command executes at the end, MySQL assigns a temporary password, remember: Czx3ge1kuz) L

To run the command:mysqld --install MySQL

Installation Complete

net start mysqlStart the service

net stop mysqlStop Service

sc delete MySQL Delete Service (on demand)

Use the Set password for Root@localhost=password (' New password ') to change the password after signing in with the initial password

Iv. Installation of PHP

PHP download Non thread safe or thread safe is OK, it is not clear what the specific runtime differences. Unzip to the specified folder, according to a plethora of online "tutorials" copy php.ini-development or Php.ini-production to php.ini, and modify the inside of the Extension_dir for the PHP installation directory of the Ext folder, such as

And then as needed (as of writing, I don't know what needs to be done), extension=xxxx such an extension is enabled, the Enable method is to remove the preceding half-width colon and save.

But there is a tutorial said, do not make the diagram convenient to enable, will encounter unexpected error, supposedly should be so. But because I just don't understand the introduction, so can only be enabled or not enabled, after slowly accumulate experience it.

Five, install Nginx

Download Nginx and unzip to the full English directory. Go to the Conf folder and modify the Nginx.conf file. Relative Php,nginx configuration file is much shorter, modify location {} and #pass the PHP scripts to FastCGI ... location{} two sections below.

Modify the root element: modify it to a Web path, such as the default path of the Web page is C:\www.

Modify Fastcgi_pass: Default I do not move, but the port number certainly can be modified

CMD command line administrator run mode, CD switch to Nginx directory, run start Nginx can start the service. Since I actually installed the Nginx first, occupy 80 ports, so the direct browser run localhost should display nginx welcome screen.

At this point, the configuration is complete in the Windows 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.