PHP 5.2.9 for Windows Server 2003 (32bit) on IIS 6.0
by maxidea • 2009年05月29日 • 网络技术 • 0 Comments
1) Run php-5.2.9-2-win32-installer.msi to install php to C:\PHP by auto
2) change the security for “c:\php” Properties:
Add “Everyone”, “IIS_WPG”, “Internet GUest Account(XXXserverName\IUSR_XXXserverName)” with permission “Full Control”
3) Unzip the “php-5.2.9-2-Win32.zip” and copy a php.ini-dist to C:\WINDOWS\php.ini and C:\PHP\php.ini, modify extension_dir = “C:\PHP\ext”; and then Add “Everyone”, “IIS_WPG”,
“Internet GUest Account(XXXserverName\IUSR_XXXserverName)” with permission “Full Control”
4) Copy “php5ts.dll” to “C:\WINDOWS\system32″ and change the security for its Properties:
Add “Everyone”, “IIS_WPG”, “Internet GUest Account(XXXserverName\IUSR_XXXserverName)” with permission “Full Control”
5) Change the Environment PATH for windows by “My computer”>”Properties”>”Advanced”>”Environment Variables”>”System Variables” to modify “PATH” add
“C:\PHP;C:\PHP\ext;”to the front of the PATH (!Important!)
6) Add a new web service extensions for PHP from “Internet Information Services (IIS) Manager”->”Web Service Extensions”->”Add a new web service
extensions”->Extension Name: PHP5 -> Require files: C:\php\php5isapi.dll and enable “Set extension status to Allowed”
7) Open “Internet Information Services (IIS) Manager”->”Web Sites”->”Default Web Site”->”Properties”->”ISAPI Filters” and add a PHP filter by name: php,
Executable: C:\php\php5isapi.dll (after reset IIS, the status should be turn to “Loaded”)
Open “Internet Information Services (IIS) Manager”->”Web Sites”->”Default Web Site”->”Properties”->”Home Directory”->”Configuration…” to add a “.php”
extension by “Executable: C:\php\php5isapi.dll” and let other setting as default.
9) Restart IIS by iisreset
That’s all!
