Windows R2 below to build Iis+sql server +php5.6 environment to meet some of the problems recorded, r2php5.6
Because the Web server was previously deployed under IIS a few sites, and now this project development is PHP, originally Php+mysql+iis should be very simple to search out the internet a lot, but, because the previous web site is used by SQL Server database, Now do not 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 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.
http://www.bkjia.com/PHPjc/1083195.html www.bkjia.com true http://www.bkjia.com/PHPjc/1083195.html techarticle windows R2 below to build Iis+sql server +php5.6 environment to meet some of the problems recorded, r2php5.6 because the Web server was previously deployed under IIS a few sites, now this project development ...