1.OS: xp
2.Server:Apache2.0.59 download: http://httpd.apache.org/download.cgi
3.Database:Mysql5.0.16 download http://www.mysql.com/download
4.PHP5.2 download http://php.net
Modify Apache conf/ http.conf
一.add below to support php
LoadModule php5_module c:/work/php5/php5apache2.dll
PHPIniDir "c:/work/php5"
二.for parse the suffix:php you will also add those
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .html
三.if want to support CGI,add below,then all
ScriptAlias /cgi-bin/ "C:/Work/wwwroot/cgi-bin/"
\< Directory "C:/Work/wwwroot/cgi-bin" AllowOverride None>
Options +ExecCGI
Order allow,deny
Allow from all
\</Directory>
AddHandler cgi-script .cgi .pl
Modify the php.ini
一.add the ext path to parse some dll
extension_dir = "C:\Work\php5\ext\"
二.use some dlls,need uncomment
extension=php_gd2.dll
extension=php_mysql.dll
三.use PEAR
;***** Added by go-pear
include_path=".;C:\Work\php5\pear"
Note: due to php reasons,you need download the go-pear.phar from http://go-pear.org/ file in PEAR folder then run the go-pear.bat