1. DownloadProgram
Apache: http://mirror.bjtu.edu.cn/apache//httpd/binaries/win32/
PHP: http://www.php.net
2. Installer
Apache2.2 double-click to run the task...
Php5.2 download the ZIP file and decompress it to C:/PHP. There are two INI files (PHP. ini-Dist and PHP. ini-recommended). We recommend that you use PHP. ini-recommented (default settings for performance and security optimization), PHP. ini-recommended: Copy to % WINDIR %, usually C: \ WINDOWS. If it is NT/2000, it is usually c: \ WINNT or c: \ winnt40 corresponding server version
3. Set PHP in Apache (modify the httpd. conf file)
PHP works in Apache in two ways:
first, use the CGI binary file and add the following settings to apache
ScriptAlias/PHP/" C:/PHP/"
addtype application/X-httpd-PHP. php
action application/X-httpd-PHP "/PHP/php.exe"
second, PHP is used as the Apache module, add the following Settings
loadmodule php5_module "C:/PHP/php5apache2_2.dll"
addtype application/X-httpd-PHP. php
* use php5ts in the PHP Directory. DLL copy to Windows/system32 (Windows XP) or WINNT/system32 (Windows NT/2000)