阿帕奇无法启动 - ServerRoot的必须是有效的目录,找不到指定的模块 [英] Apache could not be started - ServerRoot must be a valid directory and Unable to find the specified module

查看:957
本文介绍了阿帕奇无法启动 - ServerRoot的必须是有效的目录,找不到指定的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的XAMPP便携式服务器和我有一些麻烦Apache HTTP服务器,它说:ServerRoot的必须是有效的目录

I'm using xampp portable server and I'm having some trouble with Apache http server, it says "ServerRoot must be a valid directory"

命令行输出:

Please close this command only for Shutdown
Apache 2 is starting ...
httpd.exe: Syntax error on line 35 of K:/../../../xampp/apache/conf/httpd.conf: ServerRoot must be a valid directory

Apache could not be started

我检查的XAMPP /阿帕奇/ conf目录/ httpd.conf中的线35,它是:

I checked the line 35 of xampp/apache/conf/httpd.conf and it was:

ServerRoot "/xampp/apache"

哪个不存在。我的文件夹为:

Which doesn't exist. My folders are:

K:/../../../xampp/apache/conf     <- where the httpd.conf is
K:/../../../xampp/apache/         <- the server root
K:/../../../xampp/apache/modules  <- where server modules are

如果我(在第35行)改为

If i change (at line 35) to

ServerRoot ".."

它说:

Please close this command only for Shutdown
Apache 2 is starting ...
httpd.exe: Syntax error on line 65 of K:/../../../xampp/apache/conf/httpd.conf: Cannot load modules/mod_access_compat.so into server: Unable to find the specified module

Apache could not be started

我查了一下,和模块/ mod_access_compat.so存在,所以我无法弄清楚如何解决它。

I checked, and modules/mod_access_compat.so exists, so i can't figure out how to fix it.

任何帮助将AP preciated

Any help will be appreciated

推荐答案

刚刚从外壳setup_xampp.bat运行和路径应自动XA​​MPP for Windows的便携版设定。它为我工作。

Just run setup_xampp.bat from shell and the paths should be set automatically for the portable version of XAMPP for windows. It has worked for me.

这篇关于阿帕奇无法启动 - ServerRoot的必须是有效的目录,找不到指定的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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