将 Apache 文档根目录从 www/ 更改为 www/wordpress/

问题描述 投票:0回答:0

我正在尝试通过 WampServer 在 Windows 机器上安装 WordPress。

在我安装 WampServer、初始化数据库、将 WordPress 移动到 www/ 文件夹、将 Apache 监听端口更改为 8081 之后,一切似乎都很好。我输入 local:8081 并成功打开 phpadmin 页面。我输入local:8081/wordpress和local:8081/wordpress/wp-admin,一切正常

然而!!!!!我更改了 httpd-vhosts.conf 文件

  DocumentRoot "${INSTALL_DIR}/www"
  <Directory "${INSTALL_DIR}/www/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require all granted
  </Directory>

  DocumentRoot "${INSTALL_DIR}/www/wordpress"
  <Directory "${INSTALL_DIR}/www/wordpress/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require all granted
  </Directory>

输入localhost:8081主页面还是ok的。

但是 wp-login, wp-admin 在输入 localhost:8081/wp-admin 时显示错误,

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

我已经删除了所有插件以避免由于对相同错误问题的一些答案而导致插件问题,但不起作用。

如果有人能提供帮助,将不胜感激。

Apache 中的错误日志是

[Wed Mar 08 00:25:21.173957 2023] [core:error] [pid 8136:tid 1224] [client ::1:64929] AH00124:由于可能的配置错误,请求超出了 10 个内部重定向的限制。如有必要,请使用“LimitInternalRecursion”来增加限制。使用 'LogLevel debug' 获取回溯。, referer: http://localhost:8081/ [Wed Mar 08 00:25:21.203134 2023] [core:error] [pid 8136:tid 1224] [client ::1:57781] AH00124:由于可能的配置错误,请求超出了 10 个内部重定向的限制。如有必要,请使用“LimitInternalRecursion”来增加限制。使用 'LogLevel debug' 获取回溯。, referer: http://localhost:8081/ [Wed Mar 08 00:25:21.205283 2023] [core:error] [pid 8136:tid 1232] [client ::1:50251] AH00124:由于可能的配置错误,请求超出了 10 个内部重定向的限制。如有必要,请使用“LimitInternalRecursion”来增加限制。使用 'LogLevel debug' 获取回溯。, referer: http://localhost:8081/ [Wed Mar 08 00:25:21.242112 2023] [core:error] [pid 8136:tid 1212] [client ::1:54098] AH00124:由于可能的配置错误,请求超出了 10 个内部重定向的限制。如有必要,请使用“LimitInternalRecursion”来增加限制。使用 'LogLevel debug' 获取回溯。, referer: http://localhost:8081/ [Wed Mar 08 00:30:03.597086 2023] [core:error] [pid 8136:tid 1232] [client ::1:58056] AH00124:由于可能的配置错误,请求超出了 10 个内部重定向的限制。如有必要,请使用“LimitInternalRecursion”来增加限制。使用“LogLevel debug”获取回溯。 [Wed Mar 08 00:30:03.658573 2023] [core:error] [pid 8136:tid 1212] [client ::1:50369] AH00124:由于可能的配置错误,请求超出了 10 个内部重定向的限制。如有必要,请使用“LimitInternalRecursion”来增加限制。使用“LogLevel debug”获取回溯。, referer: http://localhost:8081/wordpress/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%3A8081%2Fwp-admin%2F&reauth=1

wordpress windows apache wamp
© www.soinside.com 2019 - 2024. All rights reserved.