我正在使用 xampp 便携式服务器,我在使用 Apache http 服务器时遇到了一些问题,它说“ServerRoot 必须是一个有效的目录”
命令行输出:
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/apache/conf/httpd.conf 的第 35 行,它是:
ServerRoot "/xampp/apache"
哪个不存在。我的文件夹是:
K:/../../../xampp/apache/conf <- where the httpd.conf is
K:/../../../xampp/apache/ <- the server root
K:/../../../xampp/apache/modules <- where server modules are
如果我将(在第 35 行)更改为
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
我检查了,modules/mod_access_compat.so 存在,所以我不知道如何修复它。
任何帮助将不胜感激