Install PHP

  
in Windows 2003+IIS6.0 environment

Download PHP from http://www.php.net and extract it to c:\\php;

will be “php. Ini-recommended” renamed to “php.ini” then move it to C:\\WINDOWS;

Move php4ts.dll to C:\\WINDOWS\\System32;

Enter &ldquo ; control panel & rdquo;? “Administrative Tools;

Double-click “Internet Information Service” (IIS Manager):

1) Click ““Web Service Extension” ( Web Service Extensions) and choose to add a new Web service extension, as shown below:

2), add the path to php4isapi.dll:

3), click to set the extended state: < Br>

4), right-click "Default Web Site" (Default Web Site) and select "Properties":

5), enter the home directory tab (Home Directory ), set to allow execution of scripts and executables:

6), click “Config & rdquo; Options (Configuration)? “Add”(Add):

7), fill in correctly: Executable: browse to the php4isapi.dll and the Extension: .php; Cancel the file existence check check mark, only keep the script engine:

8), enter the "documents" (Documents) tab, add index.php and top it;

9), enter the command prompt: start | Run| Cmd

10) At the command prompt, type: iisrestart

11), NT security: add readable and executable IUSR_YourMachineName in the wwwroot and php directories;

12) In order to check if PHP is running, write a file named phpinfo.php with the following simple PHP script: and copy it to the wwwroot directory.

Try to call this file from your browser to see if PHP works.

If PHP is not already running, try running Windows Installer from http://www.php.net/downloads.php and repeat all steps from scratch.

It's that simple!

Copyright © Windows knowledge All Rights Reserved