1、配置文件httpd.conf 第38行 Define SRVROOT "改成自己Apache所在的路径"
2、把Apache添加到系统服务 httpd.exe -k install -n "服务名"
php安装

apache中使用php在Apache24\conf\httpd.config中增加:
#之间
DirectoryIndex index.php
#之间
AddType application/x-httpd-php .php
#文件最后追加
LoadModule php5_module "D:/php/php5apache2_4.dll"
PHPIniDir "D:/php"
memcache安装

1、先把 .dll文件 放到 php etc文件中 再开启扩展