Windows R2 below to build Iis+sql server +PHP56 environment to meet some of the problems recorded

Source: Internet
Author: User
Because the Web server was previously deployed under IIS a few Web sites, now this project development is PHP, originally Php+mysql+iis should be very simple to search out a lot of online, but, because the previous web site is used SQL Server%e6%95%b0%e6%8d%ae%e5%ba%93/' target= ' _blank ' > SQL Server database, and now you don't want to change the original database structure directly using the iis+ SQL Server+php5.6 This environment, the middle of the tortuous process will not say, the following talk about my deployment of the time steps:

1. To download php5.6.16 (http://windows.php.net/download) to the website of PHP, pay attention to choose VC11 x86 Non Thread Safe, whether you are 64-bit or 32-bit is selected x86 that is 32-bit to download, Why this, because php5.6 does not support the link SQL Server, but Microsoft provides the corresponding components, but the Microsoft official website the above components only support 32-bit. Unzip to C:\Program Files (x86), modify php.ini, if not copy a php.ini-development to php.ini, modify Date.timezone = "Asia/shanghai", Add the extensions you need. Modify environment variables add PHP root and PHP extensions directory ext, download the corresponding VC11 (Visual C + + redistributable for visual Studio Update 4) Download x86 and install it, It must also be chosen by x86 because PHP is x86.

2. Open the CGI feature of IIS in the server role

3. Download and install PHP Manager for IIS (http://phpmanager.codeplex.com/releases/view/69115)

4. Configure the PHP manager in IIS click "Register new PHP Version" and browse to select "Php-cgi.exe" under PHP installation file

Here you can check Phppathinfo () to see if the iis+php is successful, and then connect to SQL Server .

5. To Microsoft download PHP connection SQL Server driver (http://www.microsoft.com/en-us/download/details.aspx?id=36434) Select the corresponding version of the direct installation can be. 、

6. To Microsoft download Microsoft Drivers for PHP for SQL Server(http://www.microsoft.com/en-us/download/details.aspx?id= 20098) Select the latest installation and install it under the Ext directory under PHP.

7. Open php.ini to add the corresponding Extension=php_sqlsrv_56_nts.dll extension=php_pdo_sqlsrv_56_nts.dll extension.

Here iis7+msSQL Server+php5.6 installation is complete.

The above describes the Windows R2 under the Iis+sql server +PHP56 environment encountered some of the problems recorded, including SQL Server database, Sqlserver,sql server,visual Studio content, You want to be helpful to a friend who is interested in PHP tutorials.

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