1、 将php- 5.2.1 -win32.zip 解压缩到c:/php/5.2.1路径下。
  2、 将php.ini-recommended文件扩展名改为php.ini.
  3、 使extension=php_mssql.dll   extension=php_mysql.dll生效
  4、 extension_dir = c:\php\ 5.2.1 \ext
  5、 在d:\program files\apache2.2\conf下找到文件httpd.conf
  6、 将侦听端口改为listen 8080
  7、 添加模块并制定添加路经loadmodule php5_module c:/php/ 5.2.1 /php5apache2_2.dll      phpinidir c:/php/ 5.2.1 .
  8、 添加php创建的文件放置路径documentroot d:/php 
  9、 设置默认页面directoryindex index.php index.html index.htm
10、添加默认类型    addtype application/x-httpd-php .php
      addtype application/x-httpd-php .htm
      addtype application/x-httpd-php .html
   
 
   