How to install PHP on Windows 2008

Pick Language to Auto Translate:
AR | BG | CA | CS | DA | DE | EL | ES | FI | FR | HI | HR | ID | IT | IW | JA | KO | LT | LV | NL | NO | PL | PT | RO | RU | SK | SR | SL | SV | TL | UK | VI | ZH | ZH-TW

The IIS 7 that come with Windows 2008 has a big change on the interface and underneath structure so most installer for IIS6 or prior will not work any longer!

It took me some time to figure out how to get PHP install on Windows 2008 but as it turns out it is not hard at all! Just need to know the exact steps to do!

How to install PHP on Windows 2008

The IIS 7 that come with Windows 2008 has big change on interface and underneath structure so most installer for IIS6 or prior will not work any longer!

It took me some time to figure out how to get PHP install on Windows 2008 but as it turns out it is not hard at all! Just need to know the exact steps to do!

The steps are as follow:

1. Install the PHP package in C:\PHP (for example) from php.net but I would recommend use zip package since you will do the manual setup anyway.

2. edit php.ini to set extensions that you want to enable

3. set environment path=c:\php;%path%

4. Open the Internet Information Services (IIS) Manager.

5. Double-click “Handler Mappings” from the main IIS screen.

6. Click on “Add Script Map.” to add "script mappings" handler for for c:\PHP\php5isapi.dll with extension *.php and answer "yes" to create "ISAPI and CGI restrictions" when prompted

7. Set your website application pool to "Classic mode"

8. Add ISAPI filters to point to c:\PHP\php5isapi.dll

9. Copy c:\php\php.ini to c:\windows

10. Restart the server.

That's it!

Forums: