我的机器上有一个流浪汉网站设置为vagrantfile的客户端机器(从客户端收到它) .

现在在机器上,我无法重启apache服务器 . 我做了以下命令 .

  • sudo service apache2 restart

  • dpkg-reconfigure -plow apache2

两个都给我以下错误 .

  • 重启web服务器apache2 [fail]

  • apache2 configtest失败 . 配置测试的输出为:apache2:/etc/apache2/apache2.conf的第219行语法错误:无法打开配置文件/etc/apache2/sites-enabled/default.conf:没有此类文件或目录操作'configtest'失败 . Apache错误日志可能包含更多信息 . invoke-rc.d:initscript apache2,action "restart"失败 .

此外,当我尝试访问错误日志时,它给了我许可问题 .

请帮我解决这个问题 .

谢谢,Dilip Gupta