IIS Web Server
PHP Tutorials
Manually Configure PHP.INI for IIS
Download the PHP 5.1.1 zip package from here http://www.php.net/downloads.php . Extract to a folder you create yourself as C:\PHP. Please note do not extract to the C:\ drive but create the php folder first. To configure the php.ini file locate the file called php.ini-dist in C:\php and rename it to php.ini.
Open php.ini in notepad and locatethe following:
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
doc_root = "C:\Inetpub\wwwroot" or the location of your IIS root directory
; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =
; Directory in which the loadable extensions (modules) reside.
extension_dir = "C:\php\ext" or the location of you php extensions directory
( please note: edit or change the parts as shown in red above ).
Modify Environment variables to find PHP.INI ( PHPRC=C:/php )
Modify your environment variables so that php.ini can be found by the sytem:
Click Start right click My Computer > Properties > Advanced you should see the following:
Click Environment Variables >> New under System Variables then edit the text boxes as shown:

Now the system can find php.ini in C:\php. You will need to restart the computer for these changes to take effect.
