How to use Webmatrix+iis to develop PHP programs under windows

Source: Internet
Author: User

Recently received a new project, the leader requirements for the client interface using PHP development, for convenience, I use WINDOWS7 Professional version 64-bit + IIS7.5 + PHP5.5 + WebMatrix as development environment for development;

First Download the WebMatrix installer, http://www.microsoft.com/web/webmatrix/,

After downloading is an online installation tool called WebMatrixWeb.exe, click Run will invoke Web Platform Installer 5.0,

After installing WebMatrix, you will go back to Web Platform Installer 5.0 and check the following three items for installation:

1, "Products", "Server", add "IIS 7.5 Express";

2, in the "Product", "framework", add "PHP 5.5.11";

3. Add "PHP Manager for IIS" in "Products", "Tools";

Wait for the installation to complete.

then download Xdebug, used to debug PHP programs, http://xdebug.org/download.php,

Choose the appropriate version, here I chose PHP 5.5 VC11, in the list can see a lot of names include "TS", meaning "Thread Safety" means, and PHP must correspond to the version, Windows installed under the default is not TS.

The downloaded file is "Php_xdebug-2.2.7-5.5-vc11-nts-x86_64.dll" and needs to be copied to the Ext directory in the PHP installation directory, where I use the default installation path, so the PHP installation directory is "C:\Program Files (x86) \iis express\php\v5.5\ ",

Copy the downloaded files to "C:\Program files (x86) \iis express\php\v5.5\ext\".

Next PHP configuration, copy the installation directory under the "php.ini-development" file to the D packing directory, or other editable location, open with Notepad editor, add the following configuration information at the tail

  

Save the file as "PHP.ini", and then copy overwrite to "C:\Program Files (x86) \iis express\php\v5.5\", will prompt whether to overwrite and need administrator rights, all agree, You can then use WebMatrix for PHP development.

Other than that

If you want to have direct access to the PHP program you are developing on your native IIS, you can follow these steps:

1. Open IIS Manager, find "fastcgi settings" on the homepage, click "Add Application" on the right after clicking Open, select "C:\Program Files (x86) \iis Express\php\v5.5\php-cgi.exe" on the full path;

2, add application pool, "name" Fill in "PHP", ". NET Framework Version" Select "No Managed Code", "Managed pipeline mode" select "Classic", after adding, click "Advanced Settings", "Enable 32-bit Application" value is set to "True";

3. Add the Web site and set the application pool to the "PHP" that you just configured.

How to use Webmatrix+iis to develop PHP programs under windows

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.