xampp apache Web 服务器未启动,退出代码 8 [英] xampp apache web server not starting, exit code 8

查看:52
本文介绍了xampp apache Web 服务器未启动,退出代码 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对这些 apache 设置的了解非常有限.我想拥有多个可以在本地工作的站点.

My knowledge is very limited with these apache settings. I wanted to have multiple sites that I could work on locally.

昨天安装后还可以,但是今天关机重启后就不行了.

Yesterday it worked okay after installation but after shutting down and starting again today, it did not work.

服务器无法启动,应用程序日志显示:

Server won't start and Application log says:

正在启动 Apache Web 服务器...
退出代码:8
标准输出:
apache 配置测试失败,中止
斯特德:
AH00526:/Applications/XAMPP/xamppfiles/etc/httpd.conf 的第 237 行出现语法错误:
DocumentRoot 必须是目录

Starting Apache Web Server...
Exit code: 8
Stdout:
apache config test fails, aborting
Stderr:
AH00526: Syntax error on line 237 of /Applications/XAMPP/xamppfiles/etc/httpd.conf:
DocumentRoot must be a directory

这是一个文件夹

httpd.conf
线
第237回238目录/Users/username/Sites/xampp/site-folder">

httpd.conf
line
237 DocumentRoot "/Users/username/Sites/xampp/site-folder"
238 Directory "/Users/username/Sites/xampp/site-folder">

知道哪里出了问题以及该怎么做吗?

Any ideas what is wrong and what to do?

谢谢,

推荐答案

嗯,正是因为逗号的原因,你的文本编辑器在 " 之后从 " 变成了 "代码>站点文件夹"

Well, It is because of the comma that your text editor changed from " to " after site-folder"

237 DocumentRoot "/Users/username/Sites/xampp/site-folder" 
238 Directory "/Users/username/Sites/xampp/site-folder">

更改为:

237 DocumentRoot "/Users/username/Sites/xampp/site-folder"
238 Directory "/Users/username/Sites/xampp/site-folder">

这篇关于xampp apache Web 服务器未启动,退出代码 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆