Home Backend Development PHP Tutorial Windows Server 2012 Configuration Guide - PHP Environment Setup

Windows Server 2012 Configuration Guide - PHP Environment Setup

May 15, 2018 pm 03:54 PM
php windows server Environment setup

php 5.6.12
Download address: http://www.php.cn/
Visual Studio 2010 dynamic link library (64-bit systems must install both, if not installed it will There is a problem of msvcr100.dll missing, resulting in 500 error)
Download address: http://www.php.cn/
Download address: http://www.php.cn/
First of all , download and install Visual Studio 2010 dynamic link library
Windows Server 2012 Configuration Guide - PHP Environment Setup

2015-8-11 23:17 Upload

Download attachment

Windows Server 2012 Configuration Guide - PHP Environment Setup

2015-8-11 23:17 Upload

Download attachment

Create the "php" folder in the root directory of drive C
Windows Server 2012 Configuration Guide - PHP Environment Setup

2015-8-11 23:17 Upload

Download attachment

Copy all downloaded php files to " php" folder
Windows Server 2012 Configuration Guide - PHP Environment Setup

2015-8-11 23:17 Upload

Download attachment

Copy "php. ini-production" and renamed it to "php.ini"
Windows Server 2012 Configuration Guide - PHP Environment Setup

##2015-8-11 23:18 Upload

Download attachment

Open "php.ini" with Notepad and set the php module path

extension_dir = "C:\php\ext"

Windows Server 2012 Configuration Guide - PHP Environment Setup##2015-8-11 23:18 Upload

Download attachment

Set php time zone

date.timezone = Asia/Shanghai



Windows Server 2012 Configuration Guide - PHP Environment Setup2015-8- 11 23:18 Upload

Download attachment

Open php short tag

short_open_tag = on

Windows Server 2012 Configuration Guide - PHP Environment Setup2015-8-11 23:18 Upload

Download attachment

Run PHP in CGI mode

cgi.force_redirect = 0



Windows Server 2012 Configuration Guide - PHP Environment Setup2015-8-11 23:18 Upload

Download attachment

fastcgi.impersonate = 1

Windows Server 2012 Configuration Guide - PHP Environment Setup2015-8-11 23:18 Upload

Download attachment

cgi.rfc2616_headers = 1


Windows Server 2012 Configuration Guide - PHP Environment Setup2015-8-11 23:18 Upload

Download attachment

PHP expansion section,

Open on demand


1Windows Server 2012 Configuration Guide - PHP Environment Setup2015-8-11 23:18 Upload

Download attachment

Enter the IIS control panel and select the home page, click "Handler Mapping"


1Windows Server 2012 Configuration Guide - PHP Environment Setup2015-8-11 23:18 Upload

Download Attachment

Click "Add Module Mapping"


1Windows Server 2012 Configuration Guide - PHP Environment Setup2015-8-11 23:18 Upload

Download attachment

Click "OK" after entering the content
Request path: *.php
Module: FastCgiModule
Executable file (optional) ): C:\php\php-cgi.exe
Name: FastCgi
not foundFastCgiModule The solution to the module is at the end of the post Below
1Windows Server 2012 Configuration Guide - PHP Environment Setup

2015-8-11 23:18 Upload

Download attachment

Click "Yes"
1Windows Server 2012 Configuration Guide - PHP Environment Setup

2015-8-11 23:18 Upload

Download attachment

Click "FastCGI Settings"
1Windows Server 2012 Configuration Guide - PHP Environment Setup

2015-8-11 23:18 Upload

Download Attachment

Right click and click "Edit"
1Windows Server 2012 Configuration Guide - PHP Environment Setup

2015-8-11 23:19 Upload

Download Attachment

Replace "Monitor changes made to the file "Change to the absolute location of php.ini C:\php\php.ini
1Windows Server 2012 Configuration Guide - PHP Environment Setup

##2015-8-11 23:19 Upload

Download Attachment

Click the button on the right side of "Aggregation Editor"


1Windows Server 2012 Configuration Guide - PHP Environment Setup

2015-8-11 23:19 Upload

Download attachment

Add information and click "OK"


Name: PHP_FCGI_MAX_REQUESTS

Value: 1000

1Windows Server 2012 Configuration Guide - PHP Environment Setup

2015-8-11 23:19 Upload

Download attachment

In the IIS control panel, Click "Default Document"


2Windows Server 2012 Configuration Guide - PHP Environment Setup

2015-8-11 23:19 Upload

Download attachment

Add "index .php”


2Windows Server 2012 Configuration Guide - PHP Environment Setup

2015-8-11 23:19 Upload

Download attachment

Create under the default site A file named "index.php"


2Windows Server 2012 Configuration Guide - PHP Environment Setup

2015-8-11 23:19 Upload

Download attachment

Edit "index.php", test PHP information, save and exit



phpinfo();
?>
2Windows Server 2012 Configuration Guide - PHP Environment Setup

2015-8-11 23:19 Upload

Download attachment

Visit http://www. php.cn/ Successfully configured PHP


2Windows Server 2012 Configuration Guide - PHP Environment Setup

2015-8-11 23:19 Upload

Download attachment

Note: Some friends may not be able to find the "FastCgiModule" section. That is because CGI is not installed. You only need to select CGI in the "Add Roles and Functions Wizard" and install it
11Windows Server 2012 Configuration Guide - PHP Environment Setup

The above is the content of the Windows Server 2012 Configuration Guide - PHP Environment Setup. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

CakePHP Project Configuration CakePHP Project Configuration Sep 10, 2024 pm 05:25 PM

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

To work on file upload we are going to use the form helper. Here, is an example for file upload.

CakePHP Routing CakePHP Routing Sep 10, 2024 pm 05:25 PM

In this chapter, we are going to learn the following topics related to routing ?

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

CakePHP Creating Validators CakePHP Creating Validators Sep 10, 2024 pm 05:26 PM

Validator can be created by adding the following two lines in the controller.

CakePHP Working with Database CakePHP Working with Database Sep 10, 2024 pm 05:25 PM

Working with database in CakePHP is very easy. We will understand the CRUD (Create, Read, Update, Delete) operations in this chapter.

See all articles