1, download the program
apache:http://mirror.bjtu.edu.cn/apache//httpd/binaries/win32/
Php:http://www.php.net
2. Installation procedure
Apache2.2 directly double-click to run, slightly ...
PHP5.2 download Zip, extract to c:/php, there are two INI files (php.ini-dist and php.ini-recommended), recommended php.ini-recommented (default settings for performance and security optimizations), Copy php.ini-recommended to%windir%, usually c:windows, if nt/2000, usually c:winnt or C:WINNT40 corresponding server version
3, the Apache PHP Setup (modify httpd.conf file)
There are two ways in which PHP works in Apache:
One is to use the CGI binaries, add the following settings to Apache
scriptalias/php/"c:/php/"
AddType application/x-httpd-php. php
Action application/x-httpd-php "/php/php.exe"
The second is to use PHP as the Apache module, add the following settings
LoadModule php5_module "C:/php/php5apache2_2.dll"
AddType application/x-httpd-php. php
* Copy the PHP directory Php5ts.dll to Windows/system32 (Windows XP) or Winnt/system32 (Windows nt/2000)