繁体   English   中英

在httpd.conf中更改documentroot后,Apache意外关闭

[英]Apache shutdown unexpectedly after documentroot change in httpd.conf

我目前正在遵循这个惯例 ,尝试将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”-用户名中的字母“å”有关...我试图将路径更改为没有用户名的情况,但这种方法有效。

有人知道这封信是否与关机有关吗?是否:有解决方案吗?

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

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

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM