1. 下载Apache 2.2
http://httpd.apache.org/ 官网只能下载源码
http://www.apachehaus.com/cgi-bin/download.plx 三方release
2. 安装服务
Apache 2.2/bin/httpd -k install
3. 启动ApacheMonitor
Apache 2.2/bin/ApacheMonitor.exe
4. 配置端口
Apache 2.2/conf/httpd.conf
Listen 8000
5. 下载php
6. 编辑Apache 2.2/conf/httpd.conf
LoadModule php5_module "E:\php-5.3.6\php5apache2_2.dll"
PHPIniDir E:\php-5.3.6
DocumentRoot c:/php/web //初始页面
<IfModule mime_module>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .htm
</IfModule>
7. 配置php.ini
复制php.ini-development --> php.ini
doc_root = "c:/php/web" //初始页面
extension_dir = "E:\php-5.3.6\ext"
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_openssl.dll
extension=php_pdo_mssql.dll
extension=php_sockets.dll
extension=php_xmlrpc.dll
[Date]
date.timezone = prc
8. 测试php
test.php
<?php
echo "hello";
phpinfo();
?>