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

Håv*_*sen 5 apache xampp httpd.conf

我正在关注这个尝试,试图在dropbox中使用一个文件夹作为我的htdocs文件夹.当我改变这些行:

DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">
Run Code Online (Sandbox Code Playgroud)

DocumentRoot "C:/Users/Håvard/Dropbox/web"
<Directory "C:/Users/Håvard/Dropbox/web">
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

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
Run Code Online (Sandbox Code Playgroud)

由于Skype使用相同的端口,我之前收到此错误,但这次并非如此.我相信它与我的"Håvard" - 用户名中的字母"å"有关...我尝试将路径更改为没有我用户名的内容,这样可行.

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

Håv*_*sen 2

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

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

这回答了我的问题,但它没有解决我的挪威字母导致我的 xampp 安装出现问题的整体问题。这是我面临的下一个问题