【问题标题】:Apache shutdown unexpectedly after documentroot change in httpd.confhttpd.conf 中的 documentroot 更改后 Apache 意外关闭
【发布时间】:2014-12-30 12:27:57
【问题描述】:

我目前正在关注this toturial,试图将 Dropbox 中的文件夹用作我的 htdocs 文件夹。当我更改这些行时:

DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">

DocumentRoot "C:/Users/Håvard/Dropbox/web"
<Directory "C:/Users/Håvard/Dropbox/web">

我收到以下错误:

19:39:52  [Apache]  Error: Apache shutdown unexpectedly.
19:39:52  [Apache]  This may be due to a blocked port, missing dependencies, 
19:39:52  [Apache]  improper privileges, a crash, or a shutdown by another method.
19:39:52  [Apache]  Press the Logs button to view error logs and check
19:39:52  [Apache]  the Windows Event Viewer for more clues
19:39:52  [Apache]  If you need more help, copy and post this
19:39:52  [Apache]  entire log window on the forums

由于 Skype 使用相同的端口,我之前遇到过这个错误,但这次不是这样。我确实相信它与我的“Håvard”-用户名中的字母“å”有关......我尝试将路径更改为没有我的用户名的东西,这有效..

有人知道这封信是否与关闭有关,是否:有什么解决办法吗?

【问题讨论】:

  • "Press the Logs button to view error logs and check the Windows Event Viewer for more clues"
  • 文件是空的,里面什么也没说

标签: apache xampp httpd.conf


【解决方案1】:

我找到了解决问题的方法。它是 httpd.conf 文件的编码。这是我所做的(我想有几种方法可以做到这一点):

  1. 在 Notepad++ 中打开 httpd.conf
  2. 将“新建文档”部分中的 Notepad++ 设置更改为 UTF-8
  3. 创建新文档
  4. 将 httpd.conf 中的所有内容复制并粘贴到新文档中
  5. 保存并覆盖为 httpd.conf

这回答了我的问题,但并没有解决我的挪威字母导致我的 xampp 安装出现问题的整体问题。这是我遇到的the next problem

【讨论】:

  • 我觉得你不用新建文档也可以去section encoding然后转成utf-8! (我的想法是否适用于将 xampp 文件夹中的每个文件都转换为 utf-8?)
  • 是的,可能有很多方法可以做到这一点:) 我没有尝试过转换,我最终创建了一个新的 Windows 用户并将所有内容移到那里
【解决方案2】:

右键单击您的保管箱文件夹并选择属性。然后选择选项卡安全性(Sikkerhet 在挪威语中)。点击您的用户名。在那里您可以查看您的用户是否具有读写权限。

【讨论】:

    【解决方案3】:

    检查您的新目录是否具有所有权限.. 似乎是读写权限问题

    【讨论】:

    • 想详细说明如何做到这一点?
    猜你喜欢
    • 2019-12-10
    • 1970-01-01
    • 2013-06-30
    • 2012-03-22
    • 2013-04-17
    • 2021-10-04
    • 1970-01-01
    • 1970-01-01
    • 2014-03-07
    相关资源
    最近更新 更多