PHP on IIS7.5 (Win7)

PHP on IIS

Here are some notes I took after asking Billy the easiest and fastest way to get PHP running in IIS on a windows 7 machine.  Follow these steps and you'll be able to work on PHP scripts in a matter of minutes -

 

1. PHP(此步骤不需要,可以跳过从第二步开始)

Download and install Php 5.3

 

http://windows.php.net/downloads/releases/

php-5.3.6-Win32-VC9-x86.msi

 

2. IIS > CGI

Add/Remove features > Turn Windows features on or off

 

 

PHP on IIS7.5 (Win7)_第1张图片 

3. Web Platform Installer > PHP Manager

Download and install ‘Microsoft Web Platform Installer 3.0’(http://www.microsoft.com/web/downloads/platform.aspx)

Using ‘Microsoft Web Platform Installer 3.0’ to Install 'PHP Manager' (including PHP5.3 and configure php & IIS properly)

 FYI, please see the below screenshot:

PHP on IIS7.5 (Win7)_第2张图片

This will not only install the PHP manager, but will also configure PHP and IIS properly - so we don't need to manually setup a bunch of handlers.  Note: it  currently installs and configures PHP 5.3.5

 

4. Create a test PHP site in IIS

"D://phpdemo//index.php" 

IIS > Sites > right-click > Add web site

localhost:8080-> D://phpdemo/ 

Hit http://localhost:8080/index.php

Make sure you get the PHP info -

 

 PHP on IIS7.5 (Win7)_第3张图片

 

 

We can use Visual Studio to edit the .php files, or you can install the free Eclipse - http://www.eclipse.org/

Good times.

 

To run eclipse, you ought to download and set up JDK

 (https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewFilteredProducts-SingleVariationTypeFilter).

你可能感兴趣的:(PHP on IIS7.5 (Win7))