win10安装Apache2.4记录
启动Apache2.4失败提示
PS D:\Program Files\httpd-2.4.41-win64-VS16\Apache24\bin> .\httpd
httpd.exe: Syntax error on line 40 of D:/Program Files/httpd-2.4.41-win64-VS16/Apache24/conf/httpd.conf: ServerRoot must be a valid directory
这里指明了错误,原因是路径问题,默认httpd.conf路径是Define SRVROOT “c:/Apache24”,修改成自己的就行,我这里是Define SRVROOT “D:/Program Files/httpd-2.4.41-win64-VS16/Apache24”
然后再启动就可以了