Windows2012core php5.5-compatible MSSQL database (perfect wasp environment building)

Source: Internet
Author: User
Tags mssql

Microsoft Official release sqlsrv3.1 (November 14, 2014) has supported PHP 5.5 (unfortunately only supported 32-bit version) but the foreign God has solved this problem, and even improved to support the 5.6 version.      Follow me to build the wasp environment perfectly.


Windows R2 core + Apache 2.4.10 (+php) 5.5.19 (2012) +mssql

    1. . Install windows2012 Core Edition



    2. Configure the VC environment vcredit*86 (32-bit) VCREDIT*64 official website can be

      http://www.microsoft.com/zh-cn/download/confirmation.aspx?id=29

      http://www.microsoft.com/zh-cn/download/confirmation.aspx?id=13523



    3. Download--Extract Apache 2.4.10 (Windwos version)

      Http://www.apachelounge.com/download/win64/binaries/httpd-2.4.10-win64.zip

      Unzip to C:/apache

    4. Download--Unzip php5.5.19

      Http://windows.php.net/downloads/releases/php-5.5.19-nts-Win32-VC11-x64.zip

      Unzip to c:/php


    5. Download--Install sqlsrv3.0. 0.2 (unofficial)

      Http://pan.baidu.com/s/1dDIRpJF

      Path pointing to C:/php/ext


6. Download and install SQL driver sqlncli2012

Http://www.downxia.com/Download.asp?ID=29834&URL=http://cnc.downxia.com/down/sqlncli.rar


Configure httpd.conf

(1) Open c:\apache\Apache24\conf under the httpd.conf file, open the editor with Notepad to modify and save the following.

ServerRoot "C:/apache24" to ServerRoot "C:/apache/apache24";//apache the location of the program.

ServerAdmin change does not matter;

ServerName in front of the "#" number to remove;

DocumentRoot "C:/apache24/htdocs" to DocumentRoot "c:/www";//root directory of the website

<directory "C:/apache24/htdocs" > Changed to <directory "C:/www" >;

DirectoryIndex index.html to DirectoryIndex index.html index.php index.htm//Support more default pages

scriptalias/cgi-bin/"c:/apache24/cgi-bin/" changed to scriptalias/cgi-bin/"c:/apache/apache24/cgi-bin/"

<directory "C:/apache24/cgi-bin" > Changed to <directory "C:/apache/apache24/cgi-bin" >

Add to

LoadModule php5_module c:/php/php5apache2_2.dll

addtype application/x-httpd-php. php

phpinidir "c:\php"

(2) Launch Apache.

Start---Run, enter cmd, and open a command prompt. Enter the following commands separately (return per line)

C:CD apache\apache24\bin\.httpd

If the httpd.conf is configured correctly, there is no prompt after entering httpd carriage return. Do not close the command window (Close command window is off Apache), local browser access. The advent of "It works" means that Apache is properly installed.

650) this.width=650; "src=" Http://img.myxzy.com/content/uploadfile/201304/thum-15601365519710.jpg "alt=" Click to view Original " Border= "0" style= "margin:0px;padding:5px;border:1px solid rgb (221,221,221); Background:rgb (244,247,249);"/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/54/1D/wKioL1R4VD2xC0d6AAHqg9pHek0079.jpg "title=" 1.png " Style= "Float:none;" alt= "wkiol1r4vd2xc0d6aahqg9phek0079.jpg"/>

(3) Adding Apache to System services

Close the httpd command window, or you will get an error.

Start---Run, enter cmd, and then open a command prompt. Enter the following commands separately (return per line)

D:CD apache24\bin\.httpd.exe-k install-n "ServiceName" \ \ Join the service. ServiceName is the name of the service and can be customized.

If you want to uninstall this service, first stop the service and then enter Httpd.exe-k uninstall-n "ServiceName" to uninstall the service.

7. Configure PHP.ini


      • 1.doc_root= "C:/www"

      • 2.extenstion_dir= "C:/php/ext"

3.extension=php_sqlsrv_55_ts.dll

Extension=php_pdo_sqlsrv_55_ts.dll


8. Create index.php

<?php

Phpinfo ()

?>


9. Restart Apache

. \apache\bin\httpd-k Restart


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/54/1E/wKiom1R4U7nim8CGAAGF69dVubo799.jpg "style=" float: none; "title=" 2.png "alt=" Wkiom1r4u7nim8cgaagf69dvubo799.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/1D/wKioL1R4VD6CCnXOAAH8hAhpC-I568.jpg "style=" float: none; "title=" 3.png "alt=" Wkiol1r4vd6ccnxoaah8hahpc-i568.jpg "/>


successfuly! Victory!!!! 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0003.gif "alt=" J_0003.gif "/>



This article is from "Hey Linux" blog, be sure to keep this source http://heilinux.blog.51cto.com/6123663/1584281

Windows2012core php5.5-compatible MSSQL database (perfect wasp environment building)

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.