apache: http://www.apache.org/dist/httpd/binaries/win32/ 
php: http://www.php.net/downloads.php (下载.zip版本) 
active perl: http://www.activestate.com/products...l/download.plex (下载win32) 
zend optimizer: http://www.zend.com/store/getfreefi...pid=13&zbid=198 
mod_
gzip: http://www.remotecommunications.com/apache/mod_gzip/ (下载.dll) 
mysql: http://www.mysql.com/downloads/index.html
 
修改完了,点击左边的save modiffication保存设置,然后右键点击控制台窗体,选winnt->stop the service->start the service,这样新设置就生效了。
接着查找extension_dir,在后面=加上你的windirsystem32目录全称,例如:extension_dir = d:windowssystem32 (最后的一定不能省略!) 
查找extension=php_exif.dll、extension=php_imap.dll、extension=php_ldap.dll、extension=php_zlib.dll,将前面的分号注释去掉 
查找mysql.default_port,在等号后面添加你的 mysql 端口,例如:mysql.default_port = 3306 (3306是mysql的默认端口) 
查找mysql.default_host,在等号后面添加localhost,例如:mysql.default_host = localhost 
保存 
将php.ini php.exe复制到windows目录,将php里面php4ts.dll、dlls以及extensions目录下面的全部.dll文件复制到windowssystem32下面(不要覆盖已有文件)
servertype standalone
serverroot "d:/apache" 
# apache安装的目录
pidfile logs/httpd.pid 
scoreboardfile logs/apache_runtime_status 
timeout 300 
keepalive on 
maxkeepaliverequests 100 
keepalivetimeout 15 
maxrequestsperchild 1024 
threadsperchild 50 
sendbuffersize 65536 
maxclients 150 
listen 80 
# 监听80端口,默认web server端口 
bindaddress * 
# 在任何ip均可以使用web server
loadmodule vhost_
alias_module modules/mod_vhost_alias.so 
addmodule mod_vhost_alias.c 
# 去掉这两行前面的#,开启虚拟
域名的支持
port 80 
serveradmin me@localhost 
servername localhost 
# 端口、管理员email,服务器域名,按实际修改
documentroot "d:/myweb/" 
# web文件保存地址,这里是以d:/myweb作为例子 
<directory "d:/myweb/"> 
options followsymlinks multiviews 
allowoverride all 
order allow,deny 
allow from all 
</directory> 
# 设置d:/myweb的访问选项 
scriptalias /cgi-bin "e:/myweb/cgi" 
<directory "d:/myweb/cgi/"> 
allowoverride none 
options none 
order allow,deny 
allow from all 
</directory> 
# 设置cgi-bin目录权限
#!/perl/bin/perl 
# 这一行配置perl-cgi的运行环境,由于active perl安装在d:perl,所以这里直接使用
相对路径 
# 注意,要运行的cgi、pl文件的头一行要和这里相同,否则不能运行。这里也可以写成 
# #!d:/perl/bin/perl 
# 另外这个配置第一个#不代表注释的意思,所以不能省略!!
查找directoryindex index.html,在下面添加 
directoryindex index.htm 
directoryindex default.htm 
directoryindex default.html 
directoryindex index.php 
directoryindex index.php3 
directoryindex index.cgi
查找addtype application/x-httpd-php 
修改为addtype application/x-httpd-php .php .phtml .php3
查找addhandler cgi-script 
修改为addhandler cgi-script .cgi .pl
loadmodule php4_module d:/php/sapi/php4apache.dll 
loadmodule gzip_module d:/apache/modules/apachemodulegzip.dll 
# 加载php4,gzip模块
### 以下为gzip模块设置 
mod_gzip_on yes 
mod_gzip_minimum_file_size 300 
mod_gzip_maximum_file_size 0 
mod_gzip_maximum_inmem_size 100000 
mod_gzip_keep_workfiles no 
mod_gzip_dechunk yes 
mod_gzip_can_negotiate yes 
mod_gzip_temp_dir d:/apache/temp 
# 必须在apache目录下面有一个temp目录,没有就新建一个 
mod_gzip_item_
include file .html$ 
mod_gzip_item_include file .htm$ 
mod_gzip_item_include file .shtml$ 
mod_gzip_item_include file .shtm$ 
mod_gzip_item_include file .pl$ 
mod_gzip_item_include file .cgi$ 
mod_gzip_item_include mime ^text/.* 
mod_gzip_item_include handler ^perl-script$ 
mod_gzip_item_include mime ^httpd/unix-directory$ 
mod_gzip_item_include handler ^server-status$ 
mod_gzip_item_include handler ^server-info$ 
mod_gzip_item_include mime ^application/x-httpd-php 
mod_gzip_item_include file .php$ 
mod_gzip_item_include file .php3$ 
mod_gzip_item_include file .mht$ 
mod_gzip_item_exclude file .css$ 
mod_gzip_item_exclude file .js$ 
mod_gzip_item_exclude mime ^image/.* 
mod_gzip_item_exclude reqheader content-type:multipart/form-data 
mod_gzip_item_exclude reqheader content-type:application/x-www-form-urlencoded
mod_gzip_item_exclude file attachment.php$ 
#上面这个是vbb必须要的 
### end of mod_gzip sample config 
logformat "%h %l %u %t "%r" %>s %b mod_gzip: %{mod_gzip_result}n in:%{mod_gzip_input_size}n out:%{mod_gzip_output_size}n:%{mod_gzip_compression_ratio}npct." mod_gzip_info 
# 记录gzip运行情况 
# 以上为httpd.conf需要添加或者修改的地方,其他不用修改可以了
只要配置没问题,那么上面apache 1.3.22 for win32+php 4.0.6+active perl 5.006001+zend optimizer v1.1.0+mod_gzip 1.3.19.1a+mysql 4.0.0 alpha
配置完毕。