How to install PHP on Windows

Installing PHP >= 4.3.1 & 4.1 on Windows 2000 IIS Server

Windows PHP Installation (from the WebSite)

1)       Download the full PHP windows binaries from http://www.php.net. Do NOT use the small installer. Extract the ZIP to c:\php\.
2)       Copy the php.ini-recommended to c:\winnt\php.ini.
3)       Copy php.exe, php4ts.dll, & php4ts.lib to c:\winnt\system32.
4)       Copy the entire contents of c:\php\dlls to c:\winnt\system32.
5)       In IIS, add PHP as an application mapping .php to “c:\php\php.exe %s %s” (minus the quotes, and note the double %s).
6)       Be sure your IIS user (I_USR_xxxxx) has read and execute privileges on c:\php\ and all subfolders.
7)       Edit your c:\winnt\php.ini and be sure the following line is in it.

cgi.force_redirect = 0

MY OWN METHOD:

1. Download binary… the bigger file
2. copy paste php.ini to C:/windows
– must change : extension_dir = “C:\php\extensions\”
– might change: include_path = “.;c:\php\includes”
– might change: extension=php_curl.dll (remove ; in front of line)
3. copy php4ts.lib, php4ts.dll, php.exe to windows\system32
4. copy all files withing dlls into windows\system32
5. make sure php directory has access to “I_USR xxx” enabled
6. in IIS, computer name->properties->Internet Information Services-> WWWService-> Edit
– home page-> settings->add .php (c:\php\isapi\php4isapi.dll)
– Isapi FIlters-> add-> PHP (c:\php\isapi\php4isapi.dll)
7. might do : make necessary directory Public Website..

8. test… <? phpinfo();?>

also check this:

How To Install PHP on IIS 6.0

http://www.webpronews.com/expertarticles/2006/06/19/installing-php-on-iis-windows-xp-pro
http://www.php.net/install.windows

Installing PHP >= 4.3.1 & 4.1 on Windows 2000 IIS Server

 

Windows PHP Installation (from the WebSite)

 

1)       Download the full PHP windows binaries from http://www.php.net. Do NOT use the small installer. Extract the ZIP to c:\php\.

2)       Copy the php.ini-recommended to c:\winnt\php.ini.

3)       Copy php.exe, php4ts.dll, & php4ts.lib to c:\winnt\system32.

4)       Copy the entire contents of c:\php\dlls to c:\winnt\system32.

5)       In IIS, add PHP as an application mapping .php to “c:\php\php.exe %s %s” (minus the quotes, and note the double %s).

6)       Be sure your IIS user (I_USR_xxxxx) has read and execute privileges on c:\php\ and all subfolders.

7)       Edit your c:\winnt\php.ini and be sure the following line is in it.

 

cgi.force_redirect = 0

 

MY OWN METHOD:

 

1. Download binary… the bigger file

2. copy paste php.ini to C:/windows

– must change : extension_dir = “C:\php\extensions\”

– might change: include_path = “.;c:\php\includes”

– might change: extension=php_curl.dll (remove ; in front of line)

3. copy php4ts.lib, php4ts.dll, php.exe to windows\system32

4. copy all files withing dlls into windows\system32

5. make sure php directory has access to “I_USR xxx” enabled

6. in IIS, computer name->properties->Internet Information Services-> WWWService-> Edit

– home page-> settings->add .php (c:\php\isapi\php4isapi.dll)

– Isapi FIlters-> add-> PHP (c:\php\isapi\php4isapi.dll)

7. might do : make necessary directory Public Website..

 

8. test… <? phpinfo();?>

 

also check this:

http://www.iisadmin.co.uk/?p=4

http://www.webpronews.com/expertarticles/2006/06/19/installing-php-on-iis-windows-xp-pro

http://www.php.net/install.windows

 

Leave a comment