AH00124:由于可能的原因,请求超出了 10 个内部重定向的限制

rad*_*ken 5 apache wordpress .htaccess mod-rewrite

升级我的 Ubuntu 服务器后,我尝试打开我的 WordPress 网站,我在 error.log 中收到此错误

AH00124:由于可能的配置错误,请求超出了 10 个内部重定向的限制。如有必要,请使用“LimitInternalRecursion”增加限制。使用“LogLevel debug”获取回溯。

当我打开网站时收到消息。

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
Run Code Online (Sandbox Code Playgroud)

我尝试了下面这两个链接,但我的 .htaccess 不同,所以不起作用。

Apache 2.4 - 由于可能的配置错误,请求超出了 10 个内部重定向的限制

由于可能的配置错误,请求超出了 10 个内部重定向的限制。?

.htaccess /根目录

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Run Code Online (Sandbox Code Playgroud)

.htaccess /博客

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>

# END WordPres
Run Code Online (Sandbox Code Playgroud)

阿帕奇:

Server version: Apache/2.4.18 (Ubuntu)
Run Code Online (Sandbox Code Playgroud)

有人知道如何解决这个问题吗?

谢谢。

rad*_*ken 1

apache 没有 php 模块,apache 将 php 解释为文本。

为了解决这个问题我做了:

apt-get install libapache2-mod-php

/etc/init.d/apache2 restart

apt-get install php7.0-mysql 

/etc/init.d/apache2 restart
Run Code Online (Sandbox Code Playgroud)

  • 你怎么发现这是问题所在? (4认同)