AH00124:由于可能的原因,请求超出了10个内部重定向的限制 [英] AH00124: Request exceeded the limit of 10 internal redirects due to probable

查看:278
本文介绍了AH00124:由于可能的原因,请求超出了10个内部重定向的限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在升级Ubuntu服务器后,我尝试打开wordpress网站,并在error.log中遇到了此错误

After the upgrade of my Ubuntu server, I tried open my wordpress website and I got this error in my error.log

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

当我打开网站时发消息.

message a get when i open the website.

<?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' );

我在下面尝试了这2个链接,但我的.htaccess不同,因此无法正常工作.

I tried these 2 links bellow but my .htaccess is diferent so did not work.

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

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

.htaccess/root

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

.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

apache:

Server version: Apache/2.4.18 (Ubuntu)

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

someone know how to solve this?

谢谢.

推荐答案

没有适用于apache的php模块,而apache将php解释为文本.

was no php module for apache, and apache was interpreting php as a text.

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

to solve this i did:

apt-get install libapache2-mod-php

/etc/init.d/apache2 restart

apt-get install php7.0-mysql 

/etc/init.d/apache2 restart

这篇关于AH00124:由于可能的原因,请求超出了10个内部重定向的限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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