Windows Server 2012 Configuration Guide for PHP Environment building

Source: Internet
Author: User
Tags visual studio 2010
PHP 5.6.12
Download Address: http://www.php.cn/
Visual Studio 2010 dynamic-link library (64-bit system two are installed, if not installed, there will be msvcr100.dll loss problem, resulting in 500 errors)
Download Address: http://www.php.cn/
Download Address: http://www.php.cn/
First, download the installation of the visual Studio 2010 dynamic-link library

2015-8-11 23:17 Upload

Download attachments

2015-8-11 23:17 Upload

Download attachments

Create a "PHP" folder in the C packing directory

2015-8-11 23:17 Upload

Download attachments

Copy all downloaded PHP files to the PHP folder

2015-8-11 23:17 Upload

Download attachments

Copy "Php.ini-production" and rename "PHP.ini"

2015-8-11 23:18 Upload

Download attachments

Open "PHP.ini" with Notepad and set the PHP module path
Extension_dir = "C:\php\ext"

2015-8-11 23:18 Upload

Download attachments

Set PHP time zone
Date.timezone = Asia/shanghai

2015-8-11 23:18 Upload

Download attachments

Open PHP Short Tag
Short_open_tag = On

2015-8-11 23:18 Upload

Download attachments

Running PHP in CGI mode
Cgi.force_redirect = 0

2015-8-11 23:18 Upload

Download attachments

Fastcgi.impersonate = 1

2015-8-11 23:18 Upload

Download attachments

Cgi.rfc2616_headers = 1

2015-8-11 23:18 Upload

Download attachments

PHP expansion Plate, open on Demand

2015-8-11 23:18 Upload

Download attachments

Go to the IIS Control Panel and select the home page, click "Handler Mappings"

2015-8-11 23:18 Upload

Download attachments

Click "Add Module Mappings"

2015-8-11 23:18 Upload

Download attachments

Click OK after entering the content
Request Path: *.php
Module: Fastcgimodule
Executable file (optional): C:\php\php-cgi.exe
Name: FastCgi
No workaround found for fastcgimodule module at the bottom of the post

2015-8-11 23:18 Upload

Download attachments

Click "Yes"

2015-8-11 23:18 Upload

Download attachments

Click "FastCGI Settings"

2015-8-11 23:18 Upload

Download attachments

Right click on "edit"

2015-8-11 23:19 Upload

Download attachments

Change " monitor changes to files " to the absolute location of php.ini C:\php\php.ini

2015-8-11 23:19 Upload

Download attachments

Click the button to the right of the aggregation editor

2015-8-11 23:19 Upload

Download attachments

Add information, click OK

Name:php_fcgi_max_requests

value:1000

2015-8-11 23:19 Upload

Download attachments

In the IIS Control Panel, click Default Document

2015-8-11 23:19 Upload

Download attachments

Add "index.php"

2015-8-11 23:19 Upload

Download attachments

Create a new file named "index.php" under the default site

2015-8-11 23:19 Upload

Download attachments

Edit "index.php", test PHP information, save exit
<?php
Phpinfo ();
?>

2015-8-11 23:19 Upload

Download attachments

Access http://www.php.cn/successfully configured PHP

2015-8-11 23:19 Upload

Download attachments

Note: Some small partners may not be able to find the "Fastcgimodule" section, because there is no CGI installed, just select the CGI and install it in the Add Roles and Features Wizard

The above is the Windows Server 2012 Configuration Guide of the PHP environment to build the content, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!

  • 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.