Configuring the nginx+php environment under Windows

Source: Internet
Author: User

Reference Blog: http://www.cnblogs.com/huayangmeng/archive/2011/06/15/2081337.html

Http://www.cnblogs.com/hxxy2003/archive/2012/09/20/2695254.html

1. Install PHP

Download the version of PHP windows, unzip.

Modify the php.ini file, including Extension=php_mysql.dll, Extension=php_mysqli.dll, cgi.fix_pathinfo=1

Start Php:php-cgi.exe-b 127.0.0.1:9000-c E:/test/php5/php.ini

2. Select and download the service

The more popular Web services include Appach,nginx,iis, where Nginx is chosen.

Download the Nginx version of Windows, unzip to start.

Start Service: Nginx

Stop service: Nginx-s stop

conf/nginx.conf files can modify the service port. You can modify the root directory, create a new phpinfo.php file in the corresponding directory, and print Hello world.

Enter http://localhost:port/phpinfo.php in the browser and the browser displays Hello world to indicate that Nginx started successfully.

3. Download the Framework Code

The first step: Find the right development framework (thinkphp:http://www.thinkphp.cn/found here)

Step two: Pull the branch from git, log in to your account, then click Fork

Step three: Pull the code of your own branch to the local

1) Windows needs to install Windows Git (Eg:git-2.7.2-32-bit_setup.1457942412.exe)

2) View local git configuration information, git config-l

3) Add Windows Pub-key to the Git repository, the key directory is usually: C:\Users\username\.ssh

4) Use Git clone to pull the replacement code

4, on the basis of the development of the framework

Configuring the nginx+php environment under Windows

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.