在httpd.conf中进行文档更改后,Apache意外关闭

时间:2014-11-03 19:04:38

标签: apache xampp httpd.conf

我正在关注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” - 用户名中的字母“å”有关...我尝试将路径更改为没有用户名的内容,这样做有效..

有人知道这封信是否与关机有关,以及是否:有任何解决方案吗?

3 个答案:

答案 0 :(得分:2)

右键单击您的保管箱文件夹,然后选择属性。然后选择标签安全(Sikkerhet in Norwegian)。点击您的用户名。在那里,您可以看到您的用户是否具有读写权限。

答案 1 :(得分:2)

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

  1. 在Notepad ++中打开httpd.conf
  2. 将“新文档”部分中的记事本++设置更改为UTF-8
  3. 创建新文档
  4. 将httpd.conf中的所有内容复制并粘贴到新的docuement
  5. 保存并覆盖为httpd.conf
  6. 这回答了我的问题,但它没有解决我的挪威信的整体问题,导致我的xampp安装出现问题。这是我面临的the next problem

答案 2 :(得分:1)

检查您的新目录是否具有所有权限..看起来这是一个读写权限问题