WordPress Migrating one of azure PHP environment deployments

Source: Internet
Author: User
Tags phpinfo

Original link: http://www.jerrysay.com/394.html

Today, as the first part of this course, let's take you on a local PHP environment deployment, so we can test the POC and simulate the customer's production environment. Well, don't tell the story, let's get started.

Environment Introduction:

1. Microsoft Windows Server R2

2. IIS

3. php-5.6.4-nts-win32-vc11-x64

A): http://windows.php.net/download/

b) 650) this.width=650; "title=" clip_image002 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image002" src= "http://s3.51cto.com/wyfs02/M02/58/D7/wKiom1S-DgXDezfKAAA0nxOaZrY897.jpg" height= "102"/>

c) Why choose non Thread Safe because we are using IIS and the PHP Web site also provides the relevant explanations:

If you is using PHP as FastCGI with IIS you should use the Non-thread Safe (NTS) versions of PHP.

4. mysql-5.5.41-winx64

A): http://dev.mysql.com/downloads/windows/installer/

b) need to use Oracle account to download from official website

5. VMware Workstation 11

A) Building a PHP POC environment

OK, the above environment is finished, we workstation the inside of the VM has been deployed, the C drive to create a PHP folder, and copy the PHP program files into this folder.

650) this.width=650; "title=" clip_image004 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image004" src= "http://s3.51cto.com/wyfs02/M02/58/D8/wKiom1S-DgWzSgVVAABN2VGyQcA201.jpg" height= "121"/>

Copy the Php5.dll inside the PHP folder into the C:\Windows\system32

The PHP folder inside the php.ini-development copy to the desktop to write, after writing, the modified file name is php.ini copy to C:\WINDOWS, the following is the php.ini-development need to modify how the content:

; Extension_dir = "./"

; Extension=php_mbstring.dll

; Extension=php_mysql.dll

; Extension=php_mysqli.dll

Modified to:

Extension_dir = "C:\php\ext"

Extension=php_mbstring.dll

Extension=php_mysql.dll

Extension=php_mysqli.dll

To change the default IIS configuration, add the handler mappings

650) this.width=650; "title=" clip_image006 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image006" src= "http://s3.51cto.com/wyfs02/M00/58/D8/wKiom1S-DgXhgI_7AABZdj3s-ho668.jpg" height= "198"/>

Add the default document "index.php" to the defaults Web site

650) this.width=650; "title=" clip_image008 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image008" src= "http://s3.51cto.com/wyfs02/M01/58/D8/wKiom1S-DgahqxR8AAAwie4fEt4684.jpg" height= "/>"

Create the index.php in C:\inetpub\wwwroot and write the following in the file to check the current PHP status

<?php

Phpinfo ();

?>

Open a browser, visit http://localhost/index.php, found the following error

650) this.width=650; "title=" clip_image010 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image010" src= "http://s3.51cto.com/wyfs02/M02/58/D4/wKioL1S-DtqgZk3VAAA8mQjldTk224.jpg" height= "/>"

Let's take a look at where the problem arises.

When we were ready, we lacked a software. "Visual C + + redistributable for visual Studio Update 4" is available for normal access after installation Phpinfo

650) this.width=650; "title=" clip_image012 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image012 "src=" Http://s3.51cto.com/wyfs02/M00/58/D4/wKioL1S-DtrwZgdVAAA8NTXQC0o076.jpg "height=" 109 "/>

This article is from the "Live with text" blog, please be sure to keep this source http://jerrysay.blog.51cto.com/2988555/1606191

WordPress Migrating one of azure PHP environment deployments

Related Article

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.