This tutorial will show you how to setup PHP 5.0.4 for IIS 6 on Windows 2003.
- You will first need to download php, so go over to the download section on php.net, under Windows Binaries, download the file called PHP 5.0.4 zip package
- After downloading, extract the zip file to C:\php
- Next, rename the php.ini-recommended file to php.ini and modify the settings.
- Add a Web Service Extension for php
- Under IIS click Web Service Extensions
- Click Add a new Web service extension
- [Image currently not available]
- Enter a name for it Ex: PHP
- For Required Files, click Add
- Browse to the location of the php isapi dll: C:\php\php5isapi.dll
- Click ok, and click the Set extension status to Allowed check box, click ok
- [Image currently not available]
- Add C:\php to the Path
- Right click My Computer and click Properties
- Go to the Advanced tab
- Click Environment Variables
- [Image currently not available]
- Under the System variables section, double click on the Path variable
- At the end of the Variable value field add ;C:\php
- [Image currently not available]
- Click ok, click New under the System variables section
- In the Variable name field type PHPRC
- In the Variable value field type C:\php
- Click ok, click ok, and click ok again
- [Image currently not available]
- Add the PHP ISAPI extension to your website
- Open up IIS, right click your website and go to Properties
- Go to the Home Directory tab and click Configuration
- [Image currently not available]
- Click Add, browse to the location of the php isapi dll: C:\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.
- [Image currently not available]
- 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
- [Image currently not available]
|