2、将下载的Apache解压到要搭配的环境目录

3、命令行下进入到apache下面的bin目录,输入 httpd -k install

4、安装后报错“ServerRoot must be a valid directory”

apache24phpapache 22进级到24的具体步调 Angular

办理:修正httpd.conf Define SRVROOT "D:/myenv/Apache24"改成绝对路径

5、卸载之前的做事,在重新安装 httpd –k uninstall httpd -k install

6、报错“make_sock could not bind to address 443”

办理:修正Apache24\conf\extra\httpd-ssl.conf的443更换为444

修正Apache24\conf\extra\httpd-ahssl.conf的443更换为444

7、Apache启动失落败,利用命令httpd.exe -w -n "Apache2.4" -k start,看到缺点缘故原由

这里一定要把稳Apache和php的版本,开始我下载的Apache是V14,php是V11,Apache和php整合一贯失落败,就改成了

httpd-2.4.27-x64-vc14.zip和php-7.1.8-Win32-VC14-x64.zip