1. decompress the PHP file to D: php-5.2.5 2, then open my computer-properties-advanced-environment variables-system variables-path, edit its value, add the path address :(; d: php-5.2.5; d: php-5.2.5dev; d: php-5.2.5ext) 3, in the D: php-5.2.5 folder, put php. ini-recommend
1. decompress the PHP file to D: /php-5.2.5 2, then open "my computer"-"properties"-"advanced"-"environment variable"-"system variable"-"path", edit its value, add the path address :(; d:/php-5.2.5; d:/php-5.2.5/dev; d:/php-5.2.5/ext) 3, in the D:/php-5.2.5 folder, put php. ini-recommend
1. Extract the PHP file to D:/php-5.2.5
2. Choose my computer> Properties> advanced> environment variables> system variables> path ", edit its value and add the path address below: (; d:/php-5.2.5; d:/php-5.2.5/dev; d:/php-5.2.5/ext)
3. In the D:/php-5.2.5 folder, copy php. ini-recommended to the c:/windows directory and rename it php. ini.
4. in php. find windwos extensions in ini, and the components supported in windows are displayed here. Remove ";" before extension = php_gd2.dll, extension = php_mbstring.dll, and extension = php_mysql.dll.
Apache
1. install apache
2. "conf/httpd. conf" in the apache installation directory"
LoadModule php5_module "D:/php-5.2.5/php5apache2_2.dll"
# Specify the php Directory and the php. ini directory.
PHPIniDir "C:/windows"
AddType application/x-httpd-php. php. phtml. php3. php4
AddType application/x-httpd-php-source. phps
Adddefacharcharset GB2312
DirectoryIndex index.html index.htm index. php
Add or update none of the above
Iis
1. Open "Internet Information Service (IIS) manager" and select "Add a new Web Service extension" in "Web Service extension ", the extension can be filled with "php isapi extension", the required file selection: D:/php-5.2.5/php5isapi. dll, and set the extension status to allow.
2. Choose "website"> "properties"> "ISAPI filter"> "add". Enter "PHP" as the filter name, and select "D" as the executable file: /php-5.2.5/php5isapi. dll.
3. Choose "website"> "properties"> "main directory"> "application settings"> "configuration"> "application extension"> "add", whether to select D:/php-5.2.5/php5isapi for the executable file. dll. Enter ". php" for the extension, and set the action to "GET, HEAD, POST ".
4. Choose "website"> "properties"> "document"> "enable default content document"> "add" to enable index. add php as the default content document.
5. Select "server machine name"> "all tasks"> "restart IIS" to restart IIS.