登陆

httpd.exe: Syntax error on line 521 of D:/phpstudy_pro/Extensions/Apache2.4.39/conf/httpd.conf: Syntax error on line 20 of D:/phpstudy_pro/Extensions/Apache2.4.39/conf/vhosts/localhost_80.conf: Expected </Directory> but saw </VirtualHost>

httpd.exe: Syntax error on line 521 of D:/phpstudy_pro/Extensions/Apache2.4.39/conf/httpd.conf: Syntax error on line 20 of D:/phpstudy_pro/Extensions/Apache2.4.39/conf/vhosts/localhost_80.conf: Expectedbut saw

2019-12-26 11:42:433128 次浏览

全部回复(1)我要回复

  • phpstudy01

    phpstudy012019-12-26 14:08:16

    出现这个问题的原因:

    手动修改httpd.conf文件并删除了文件结尾处的换行导致。

    解决方案,见:

    https://www.xp.cn/wenda/12982.html

    关于httpd.conf文件手动修改后,升级8.1,Apache无法启动报错的解决办法

    回复
    0
  • 取消回复发送