Installing IIS 5.1 and PHP

(I originally posted this on 3dbuzz forums here I am just moving it to my blog) 

I recently installed php on my windows server with IIS 6.0 and 5.1. It is fairly easy to do and doesn't require you to have to install apache. I am just doing this as an alternative to apache incase you don't want to install it.

This worked for me in my mock test run through. It does require windows xp pro, but there are things online all over the place on how to install IIS on windows xp home.

Let me what know what you think.

Install IIS:

  • Start -> control Panel -> Add/Remove Windows Components.
  • check Internet Information Services(IIS)
  • click Details...
  • Check all but ftp, unless you want it.
  • click ok, ok close Add Remove programs.
Download bin files of php 5
Exctract the zip file to:
  • c:\inetpub\php\
rename php.ini-recommended file to php.ini

Set the path up
  • Right click My Computer and click Properties
  • Go to the Advanced tab
  • Click Environment Variables
  • Under the System variables section, double click on the Path variable
  • At the end of the Variable value field add .;C:\inetpub\php\
  • Click ok, click New under the System variables section
  • In the Variable name field type PHPRC
  • In the Variable value field type C:\inetpub\php\
  • Click ok, click ok, and click ok again
Configure in IIS:
  • start -> Control Panel -> Administrative Tools -> Internet Information
  • Service
  • Right Click on Default Web Site goto properties
  • Go to the Home Directory tab and click Configuration
  • Click Add, browse to the location of the php isapi dll: C:\inetpub\php\php5isapi.dll
  • Click ok and type .php for the Extension
  • Under Verbs, check Limit to and type GET,HEAD,POST,TRACE
  • Click ok twice.

Add index.php as the default content page.
  • Go to the Documents tab and click Add
  • Type index.php and click ok
  • Select index.php and click move up until it is the first one in the list
  • Click ok
One final note be sure that the appropriate ports are open on your firewall.

Powered by BlogEngine.NET 1.3.0.0
Theme by Mads Kristensen


My Flare

AddThis Feed Button

National Blog Posting Month

Eagle Scout

I'm Test Driven

[Reserved for MVP status I want to earn]

View Buddy Lindsey's profile on LinkedIn

Twitter



Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Sign in